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

Partial views in asp.net MVC






Creation of partial views







Click to Enlarge






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





Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250