on

|

views

and

comments

Determining if you should use ASP.NET MVC

ASP.NET MVC was introduced about a decade ago to give developers an alternative way of writing web applications. The move, I guess, was inspired by a long list of open-source frameworks available at the time that used the Model- a long list of open-source frameworks available at the time that used the Model View-Controller (MVC) pattern. ASP.NET MVC, though, was not bad at all and became a powerful development framework for the web from 2010 forward.

The changes coming with ASP.NET Core 1.0 reinforce and confirm this vision. To be a web developer today and tomorrow on the Microsoft stack, you need to master ASP.NET MVC. ASP.NET MVC at a glance ASP.NET Web Forms owed its success to the thick abstraction layer it built over the core web infrastructure. ASP.NET MVC makes a point of doing just the opposite; it makes the same abstraction layer as thin as possible.

Whereas Web Forms aims to shield developers from the details of HTML, CSS, and JavaScript, ASP.NET MVC strives to give developers total control over markup by including HTML, JavaScript, and CSS. ASP.NET MVC uses the controller as the entry point in the server-side chain of tasks that process an incoming request.

As a developer, you have total control over the building of the URL and how it is mapped to a controller. Internally, the controller has access to the surrounding HTTP context—including the session state, request, response, and user information—and it orchestrates the processing of the request. Any results generated by the request processing are delivered back to the controller, which decides about the next step.

The next step involves generating an HTML view, packaging data in JSON or XML format, or delivering anything else the caller expects to receive—for example, binary data. Compared to using Web Forms, the building of the view is a lot trickier because the developer is responsible for just about everything. The often-blamed viewstate in Web Forms actually saved a lot of work for developers. It is not part of ASP.NET MVC, and all the viewstate’s maintenance work now has to be manually coded.

Tags

Recent Articles

Deciphering the Essence of Finance: A Comprehensive Definition

Finance is a fundamental concept that permeates every facet of modern society. It plays a pivotal role in shaping economies, businesses, and personal lives....

Why Should You Enroll in Online Trading Courses?

The financial markets are now easier to access than ever, thanks to the digital era. The way people approach trading and investing has been completely...

All Categories

Must-read

5 Biggest Tamil Superstars That Have Changed The Industry Forever

The Tamil film industry has given birth to numerous talented actors who have made a lasting impression on both the industry and their fans....

Awe-inspiring Performances: Sharad Kelkar’s Magnificent Marathi Movies

Sharad Kelkar is a versatile and immensely talented actor. He has left an indelible mark on Marathi cinema with his impactful performances. With a...

More like this