Category: MVC
-
Model Binder in Asp.net MVC
Introduction Model binding is one of the magic things in MVC framework. We know that if the model property matches exactly with view, then MVC architecture automatically takes care of the model binding process. This is very simple and straight… Continue reading
-
implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application
In the previous tutorial you used inheritance to reduce redundant code in the Student and Instructor entity classes. In this tutorial you’ll see some ways to use the repository and unit of work patterns for CRUD operations. As in the… Continue reading
-
Asp.net MVC 5 Customized Mobile based View For Iphone,Android,Windows Phone
Asp.net MVC 5 has great feture called Mobile based separate view , suppose your View for all application is index.cshtml, you need to separate your view for iPhone and android. Now , install Razor view engine 3.0 and make a… Continue reading
-
Save as json file error in internet explorer
when using asp.net mvc json result return , in internet explorer , save as json file option will come. this can be resolved by // this was previous // return Json(new { sView = msg, IsSuccess = isnsuccs }, JsonRequestBehavior.AllowGet);… Continue reading
-
Nullable Tempdata in MVC
DateTime? FromDate = TempData[“FromDate”] as DateTime?; DateTime? ToDate = TempData[“ToDate”] as DateTime?; int? UserIdInv = TempData[“UserIdInv”] as int?; Continue reading
-
Minification and bundling in MVC 4
In MVC 4.0 or asp.net 4.5 , new feature came from microsoft is Bundling and minification. A)Bundling : Previously Files like multiple css and javascript , which were in queue for selecting single file, but in mvc 4 , multiple… Continue reading
-
Temp Data uses in MVC
Tempdata is a dictionary object which derives from TempDataDictionary,Tempdata is very uses full for below uses 1)Passing data from Action to Action in same controller 2)passing data from one controller to another controller 3)From View to Action 4)From Action To view… Continue reading
-
Advantages of Razor View Engine
From Mvc 2.0 there is only aspx view engine which supports only aspx web form syntax . But from MVC 3.0 new view engine introduced Razor view engine .Feature of razor view engine 1)It is Test driven development support 2)It… Continue reading