Skip to main content

Posts

Showing posts with the label MVC 6

What beforFilter(), beforeRender() and afterFilter() functions do in Controller?

What beforFilter(), beforeRender() and afterFilter() functions do in Controller? beforeFilter () -This function is used to run before every action in the controller. Most of the programmer used to check valid session, user role and permissions. beforeRender () - This function is used to called after controller action logic and before the view is rendered. afterFilter () - This function is used to called after every controller action and after rendering is competed. It is the last controller method to run.

13 New Key Features of MVC 6 - [vNext Architecture]

“What”? ‘Why” and “When”? This article introduces to 13 new key Features for MVC 6 and Roslyn Compiler and let’s explore in detail without writing the code. Try the live example of the vNext code shown in this page! Key Features as following as, =>  MVC 6   Added new cloud computing optimization system of MVC , web API, SignalR and entity framework. => The Microsoft  make a bundle of MVC, Web API, WebPages, SignalR , that bundle we called  MVC 6 . => In MVC 6, Microsoft removed the dependency of system.web.dll from MVC 6 because it's so expensive. Typically  it consume 30K memory per request/response. => Right now, in MVC 6 consume 2K  memory per request response. It's too small memory  consume. => Most of the problem solved using the Roslyn Compiler . => Added a Start-up class that replaces to global.asax file. => The Session state and caching adjust our behavior dependin...

What's New in ASP.NET MVC 5?

The MVC is a framework, standard pattern for developing Web applications and MVC framework handled by three objects Model, View and Controller. What's New in ASP.NET MVC 6? MVC 5 Key Features - 1.       One ASP.NET 2.       ASP.NET Identity 3.       Bootstrap 4.       Authentication filters 5.       Filter overrides 6.       Attribute routing In detail - 1.       MVC 5 introduced to ASP.NET Identity for authentication and identity management. 2.       ASP.NET Identity is a new Membership provider to handle the authentication and authorization for social networking site just like Google , twitter, face-book etc. 3.       MVC 5 added  to authentication filters for authenticate to users using  third party authentication provi...

55 Best Difference Between MVC 2, MVC 3, MVC 4, MVC 5 and MVC 6

“What”? ‘Why” and “When”? This article introduces to 55 key Features for MVC newest and oldest versions and also will we have many differences in between MVC 2, MVC 3, MVC 4, MVC 5 and MVC 6 and let’s explore in detail without writing the code. Try the live example of the vNext code shown in this page! 10 Key Features – MVC 2 1)      MVC 2 Added Templates Helpers . 2)      MVC 2 Added Model validator Provider. 3)      MVC 2 Added Client-Side Validation. 4)      MVC 2 Added Html Validation Summary Helper Methods. 5)      MVC 2 Added Display Model Level Error. 6)      MVC 2 Added Require https Attribute Action Filter . 7)      MVC 2 Added Asynchronous Controllers. 8)      MVC 2 Added Default Value Attribute in Action Methods. 9)      MVC 2 Added Binding Binary Data to Model Bi...