Tell us what is ViewStart?
Submitted by: MuhammadRazor View Engine introduced a new layout named _ViewStart which is applied on all view automatically. Razor View Engine firstly executes the _ViewStart and then start rendering the other view and merges them.
Example of Viewstart:
@ {
Layout = "~/Views/Shared/_v1.cshtml";
} < !DOCTYPE html >
< html >
< head >
< meta name = "viewport"
content = "width=device-width" / >
< title > ViewStart < /title> < /head> < body >
< /body> < /html>
Submitted by: Muhammad
Example of Viewstart:
@ {
Layout = "~/Views/Shared/_v1.cshtml";
} < !DOCTYPE html >
< html >
< head >
< meta name = "viewport"
content = "width=device-width" / >
< title > ViewStart < /title> < /head> < body >
< /body> < /html>
Submitted by: Muhammad
Read Online MVC Developer Job Interview Questions And Answers
Top MVC Developer Questions
☺ | Tell me in which assembly is the MVC framework is defined? |
☺ | Explain what are Filters in MVC? |
☺ | Tell us attribute based routing in MVC? |
☺ | Suppose if we have multiple filters, what’s the sequence for execution? |
☺ | Tell us what are the Difference between ViewBag&ViewData? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |