Page life cycle of MVC

Page life cycle of MVC is like below .When Browser request to application it will do first 1)App initialization: It will create initialization of Application of IIS 2)Routing: It is very important of MVC , this is the first step , all mvc based application starts with routing,it passes UrlRoutingModule , the route table contains all…

Read More

Different types of results in MVC

In MVC there are almost 12 types of result , Actionresult class is the base class and there are eleven sub types are available. a)Viewresult: for returning view only. b)PartialViewResult: It will render a particular partial view result, the best example of it will be like ajax in mvc, in action link, if any one wants…

Read More

Using Asynchronous Methods in ASP.NET MVC 4

In .net 4.5 , there is a new feature is called  asynchronous method calling , action methods that return an object of type  Task<ActionResult> , MVC 4 supports Task based Programming , it is inheriting from namespace called System.Threading.Tasks , The .NET Framework 4.5 builds on this asynchronous support with  the await and async keywords that make working with Task objects which is  much less complex…

Read More

Filters in mvc

there are different types of filters in mvc,the execution of filters below like A)Authorization filters: this filter implements using IAithorizationFilter , it is used to secure action like performing authentication and validationit is used by Authorize attribute , below is the example of using this attribute . [Authorize] public ActionResult Authenticateuser() { return View(); }…

Read More