ALERT

[FREE DEMO] Deploy Your Enterprise Cloud in Minutes

View (MVC)

Definition - What does View (MVC) mean?

A View, in the context of a Model View Controller (MVC) architecture, is a software class that contains a template and data form and produces a response for the browser. It receives data from the Controller of the MVC and packages it and presents it to the browser for display.

The View is not very autonomous -it is like a black box where some data is thrown at it and it gives a display to the user in a browser friendly manner. It collects the input data from data sources, finds the template upon invocation, and combines them into HTML output at runtime.

Techopedia explains View (MVC)

The way the Controller passes data down to the View is through a dictionary called a ViewData dictionary. This dictionary contains the packaged results which end up being converted to the resulting HTML output.

The output from a View is usually HTML, however it can also be defined to give other view results such as JSON strings and JavaScript code.

The View is a common aspx file which would contains the relevant controls of the specific ASP.NET application. A View can be shared by multiple controllers and can be partial or strongly typed. The partial view is analogous to controls in webforms and is rendered through the ViewUserControl class.

If a View is not a partial view it would be a master page. This masterpage is similar to the masterpage in webforms; however, it is located under the ViewShared folder. A strongly typed View is isolated from the Controller and the data can be passed in two distinct ways either through the ViewData dictionary or via an object model.

This definition was written in the context of ASP.NET

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.