Articles → ASP .NET MVC → Partial views in asp.net MVC

Partial views in asp.net MVC






Creation of partial views






Picture showing Add -> View... option in context menu

Click to Enlarge





Picture showing the popup window to add new view

Click to Enlarge





<table>
   <tr>
      <td><a href="http://google.com" target="_blank">Google</a></td>
   </tr>
   <tr>
      <td><a href="http://bing.com" target="_blank">Bing</a></td>
   </tr>
</table>



Adding partial view in the view




@{
ViewBag.Title = "Home Page";
}
@Html.Partial("SideBar")



Output




Picture showing the output of partial views in asp.net mvc

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, September 24, 2015

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250