Kml Surani
Learn different types of Action Results in MVC?
By Kml Surani in .NET on Sep 06 2016
  • Tushar Dikshit
    Nov, 2017 13

    There are many as per the response is required. ------------------------------------------------------------------------------------------------------------------- ViewResult - Renders a view as a Web page. PartialViewResult - Renders a partial view, which defines a section of a view that can be rendered inside another view. RedirectResult - Redirects to another action method by using its URL. RedirectToRouteResult - Redirects to another action method. ContentResult - Returns a user-defined content type. JsonResult - Returns a serialized JSON object. JavaScriptResult - Returns a script that can be executed on the client. FileResult - Returns binary output to write to the response. EmptyResult - Represents a return value that is used if the action method must return a null result (void).

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS