It seems like everywhere you read, everyone is talking about using Angular, Bootstrap, or MVC to create web applications. But what about programmers still working in Web Forms? You want to continue to use Web Forms and still build mobile web apps, use jQuery, Angular and Bootstrap. Not to fear, Web Forms is not dead, and nearly everything you can do in MVC, you can also do in Web Forms. Web Forms can also use client-side frameworks just as well as MVC.
Many programmers feel they have to choose one technology over another. But, there is really no reason you can’t program in both MVC and Web Forms and use each for what they are good at. Many MVC programmers give many reasons why you should use MVC as opposed to Web Forms. The reasons I hear more often are:
- Fine control over the HTML generated
- Ability to unit test
- Can control the "id" attribute generated
- Ability to use Friendly URLs
- No ViewState sent to client
Web Forms Advantages
Of course, programmers that like Web Forms have many reasons why they want to stick with it:
- Rapid Application Development
- Less code to write because of rich server controls
- Lots of server controls to choose from
- Great third-party support
- Easy to preserve state
- They like the event driven model
- Hides the complexity of the web
Of course there are many advantages to using client-side code as well.
- Very fast
- Greatly reduces the need for post-backs
- No hiding of web behind any server-side technologies
- Lots of frameworks to help you develop
Which One to Choose?
Many Web Forms developers ask about Angular and using it in their Web Forms apps. The great thing about Angular is you can easily add it to your Web Forms or MVC application. You will most typically use Angular for new pages that you wish to create in your existing application, or to replace slow performing pages. This means you will probably start with a plain old HTML page and then add your Angular code to that.
It is up to you which technologies you are going to use when developing your web applications. Using ASP.NET Web Forms or MVC are both good choices and both can be made to run quickly or slowly depending on how you code it. Taking advantage of client-side technologies such as Angular and jQuery can give you a performance boost. If you need help with any migration or learning any of these technologies, please contact PDSA and we will be glad to help.