Do you know the right technology?
  v1.0 Posted at 30/07/2016 4:01 AM by Tiago Araujo

Use .NET MVC over ASP.NET Web Forms.

<asp:HyperLink ID="HyperLink1" runat="Server" NavigateUrl="http://www.example.com" CssClass="example" Text="Hello World"/>

Figure: Bad example - Using Web Forms

<a href="http://www.example.com" class="example" id="Example1_HyperLink1">Hello World</a>

Figure: Good example - Using MVC 5

Read the Top 5 reasons why you should never use Web Forms again:

  1. Testability - MVC provides true separation of concerns, and makes it easy to test the whole application from Unit Tests to Coded UI Tests
  2. Instant Pages - Get your admin pages up and running faster than ever with improved scaffolding. Don't get bogged down doing Create, Edit, Update, Delete
  3. Better HTML Markup Control - Every layer of obstruction creates new problems down the track. When so much development now involves jQuery or other javascript libraries, MVC simplifies development by putting the developer back in charge of the HTML that is actually rendered
  4. Simpler Debugging - This means that instead of complicated Webform lifecycles, your code either goes into the Route, Controller or View, so you can jump right into coding without an intimate knowledge of the page lifecycle
  5. Mobile Support - With Adaptive Rendering, MVC allows the same User Interface to Render on Different Devices, so users can check it out on their PC, their Tablet or even their Smart Phone

Or watch the video: ​

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: