How do I use partial view?



How do I use partial view?..

Answer / Pushpendra Bahadur Singh

To use a partial view in ASP.NET MVC, you can create a new .cshtml file and place it in the appropriate folder (e.g., Shared or _ViewImports). Then, in your main view, you can render the partial view using the @Html.Partial() method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What does CLR do as soon as an assembly is created ?

2 Answers   MMTS,


VIEWS WITH SYNTAX AND EXAMPLE IN SQL

1 Answers  


How do you sort a dataset?

2 Answers  


what is Thread Priority?

2 Answers  


What is the difference between viewbag and viewdata in asp.net mvc?

1 Answers  


How large is the .net framework 3.0?

1 Answers  


If background completes its processing will it wait for foreground threads?

2 Answers   Kanbay,


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

1 Answers  


what is a mvc in asp.net?

3 Answers   Cap Gemini, Elsinoir Technologies, HCL,


Can you declare an override method to be static if the original method is non-static

1 Answers  


What are action filters?

1 Answers  


Explain the advantage of packaging over xcopy in .net?

1 Answers  


Categories