@Blog.Author(Nandip Makwana) .LearningExperience(ASP.NET, ASP.NET MVC, IIS, jQuery & Technology Surrounding it...)

September 29, 2012 comment

PartialViewResult in ASP.NET MVC controller

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. One more important aspect is that generally partial view markup will be reflected as a part of page but not directly as a page (read again!) and layout view contain markup for whole page layout and not for specific part of page. So again no need to apply layout view while rendering partial view.

September 3, 2012 comment , , , , , , , ,

ASP.NET 4.5 & MVC 4: Customize oAuth Login UI

This post is part of ASP.NET MVC 4 Article Series.

In this quick post, we will see how to customize, oAuth Login UI in ASP.NET 4.5 and MVC 4. For more detail on setting up facebook & twitter login with MVC 4, you can refer my previous post. One of the common requirements with oAuth login is that displaying respective provider’s logo or image.

Featured Content

Resources & Tools

About Nandip Makwana

Nandip Makwana is passionate about digital world and web. He completed his Masters in Computer Application in June 2011. Currently he is working as a Software Engineer. He has shown great promise and command over ASP.NET and technologies surrounding it during his academic years and professorial life...continue reading