In ASP.NET MVC incoming browser request mapped to a controller’s action method and that action method returns type of ActionResult in response to the browsers request. I was playing bit with ASP.NET MVC3 to check out new features of ASP.NET MVC 3 and I have found three great new ActionResult Type. Below is details explanation of each one.
Here are code example of Action ResultType how we can use that in code.
public ActionResult SpecificResult()
return new HttpStatusCodeResult(404);
public ActionResult NotFound()
public ActionResult PermanentRedidrect()
return new RedirectResult("http://jalpesh.blogspot.com");
Hope you liked it.. Stat tuned for more..Happy Programming
Tags: C#.NET, BRH, #DATAACCESS, #DOTNET, #ASP.NET, ASP.NET MVC, ASP.NET 4.0, MVC 3.0,