I have a View which is displaying in MVC. It includes a partial View which is not appearing. When I use @Html.Partial or @Html.RenderPartial it does not hit my breakpoint in the Controller class. When I use @Html.RenderAction it does hit my breakpoint
and it returns HTML markup, but it displays as angle brackets in the browser (ie. <table><tr> etc.). How should this work? I think Microsoft needs to add about 100 more ways to return information from the Controller because I'm not nearly confused enough.
(joking)
DallasSteve
Member
221 Points
331 Posts
How To Render A Partial View In Razor
May 01, 2012 05:00 PM|LINK
I have a View which is displaying in MVC. It includes a partial View which is not appearing. When I use @Html.Partial or @Html.RenderPartial it does not hit my breakpoint in the Controller class. When I use @Html.RenderAction it does hit my breakpoint and it returns HTML markup, but it displays as angle brackets in the browser (ie. <table><tr> etc.). How should this work? I think Microsoft needs to add about 100 more ways to return information from the Controller because I'm not nearly confused enough. (joking)
www.SteveGaines.us