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…

  • ,

    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…

  • ,

    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…

  • ,

    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 //…

  • ,

    Nullable Tempdata in MVC

    DateTime? FromDate = TempData[“FromDate”] as DateTime?; DateTime? ToDate = TempData[“ToDate”] as DateTime?; int? UserIdInv = TempData[“UserIdInv”] as int?;

  • 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…

  • 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…

  • 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…