Number of questions 1,751
Number of tests completed 248,330
Number of questions answered 3,716,082
Number of registered users 19,034
Sign In | Register
Skip Navigation Links
Question: What are partial views in MVC
Answer1: Its the resource file for a view
Answer2: View that has strongly-type models
Answer3: Same as MasterPage in asp.net
Answer4: Reusable view
Answer5:
Answer: Reusable view

Explaination: Partial view is a reusable view (like a user control) which can be embedded inside other view. For example let’s say all your pages of your site have a standard structure with left menu, header and footer For every page you would like to reuse the left menu, header and footer controls. So you can go and create partial views for each of these items and then you call that partial view in the main view Once the partial view is created you can then call the partial view in the main view using “Html.RenderPartial” method as shown in the below code snippet.
<% Html.RenderPartial("MyView"); %>
Link:

Correctly answered: 18195
Incorrectly answered: 5480
Terms of Use
contact@quiznetonline.com Ver. 2.0.6783.38332