Should I migrate to ASP.NET MVC?

后端 未结 20 2496
小蘑菇
小蘑菇 2020-11-28 22:19

I just listened to the StackOverflow team\'s 17th podcast, and they talked so highly of ASP.NET MVC that I decided to check it out.

But first, I want to be sure it\'

相关标签:
20条回答
  • 2020-11-28 23:12

    ASP.NET MVC basically allows you to separate the responsibility of different sections of the code. This enable you to test your application. You can test your Views, Routes etc. It also does speed up the application since now there is no ViewState or Postback.

    BUT, there are also disadvantages. Since, you are no using WebForms you cannot use any ASP.NET control. It means if you want to create a GridView you will be running a for loop and create the table manually. If you want to use the ASP.NET Wizard in MVC then you will have to create on your own.

    It is a nice framework if you are sick and tired of ASP.NET webform and want to perform everything on your own. But you need to keep in mind that would you benefit from creating all the stuff again or not?

    In general I prefer Webforms framework due to the rich suite of controls and the automatic plumbing.

    0 讨论(0)
  • 2020-11-28 23:16

    5 Reasons You Should Take a Closer Look at ASP.NET MVC

    0 讨论(0)
提交回复
热议问题