Working with Action Selectors in MVC

Action selectors are attribute in MVC. It is used with action method and in routing by routing engine to handle a request. ActionName NonAction ActionVerbs 1. ActionName: ActionName attribute allow us to specify different action name than method name. [ActionName(“GetData”)] public ActionResult About(){ return View(); } Now URL will be http://localhost:port/controler/GetData/. Action name “About” is … Read more Working with Action Selectors in MVC

How Html.Partial is different from Html.RenderPartial?

Interviewer asked me this question once in a interview. Both looks same and are used to render the partial view. But there is difference between these two. Basic knowledge of MVC application is required to go ahead with this article.  Html.Partial: It renders partial view and returns mvcHtmlString. It can be stored in variable and … Read more How Html.Partial is different from Html.RenderPartial?