5
Shouts

Return PartialView from ASP.NET MVC controller | dotnetExpertGuide.com

published 227 days, 8 hours, 37 minutes ago posted by nandipnandip 236 days, 23 hours, 12 minutes ago
Wednesday, October 10, 2012 10:44:04 AM GMT Sunday, September 30, 2012 8:09:15 PM GMT

return PartialView()… yeah as it suggests it will return partial view but I think many developer does not know about PartialViewResult or have never used it. So let’s have quick discussion on it. Let start with scratch, as we know @Html.Partial is used to inject partial view markup inside another view and while using @Html.Partial, it will not render layout view simply it will render content of partial view without applying layout view. It is very much necessary because the partial view content will be rendered within another view (or sometime partial view) and hence that view has already applied layout view so there is no need to apply layout view again on partial view...

category: How To | clicked: 42 | | source: www.dotnetexpertguide.com | show counter code
tags:

No comments yet, be the first one to post comment.

To post your comment please login or signup