Do you know what is the difference between View and Partial View?
Submitted by: MuhammadView:
☛ It contains the layout page.
☛ Before any view is rendered, viewstart page is rendered.
☛ View might have markup tags like body, html, head, title, meta etc.
☛ View is not lightweight as compare to Partial View.
Partial View:
☛ It does not contain the layout page.
☛ Partial view does not verify for a viewstart.cshtml.We cannot put common code for a partial view within the viewStart.cshtml.page.
☛ Partial view is designed specially to render within the view and just because of that it does not consist any mark up.
☛ We can pass a regular view to the RenderPartial method.
Submitted by: Muhammad
☛ It contains the layout page.
☛ Before any view is rendered, viewstart page is rendered.
☛ View might have markup tags like body, html, head, title, meta etc.
☛ View is not lightweight as compare to Partial View.
Partial View:
☛ It does not contain the layout page.
☛ Partial view does not verify for a viewstart.cshtml.We cannot put common code for a partial view within the viewStart.cshtml.page.
☛ Partial view is designed specially to render within the view and just because of that it does not consist any mark up.
☛ We can pass a regular view to the RenderPartial method.
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. |