简体   繁体   中英

which is better? asp.net 2.0 stick with isapi rewrite or upgrade to 3.5 and use mvc?

i have a asp.net 2.0 web app that runs with ajax 1.0 extensions and isapi rewrite.

I have some bugs and i am considering whether to upgrade to 3.5 and use asp.net mvc instead.

Please advise.

Upgrade your framework version to .NET 3.5 SP1. Use the System.Web.Routing namespace and you'll get MVC's URL routing functionality. You don't need to completely switch over to MVC from WebForms.

I would upgrade to WebForms 3.5 (.NET 3.5 SP1). Routing was baked into .NET 3.5 SP1. After that if you find that you want to use some of the other features of MVC then you could upgrade then. Here's an MSDN magazine article that should get you started.

If your of the elk that enjoys rewriting your entire project because some new geewiz technology comes out then go for it (I know I am). If not, stick to what you have. MVC Framework is great but rewriting code will almost always cause you more problems then fixing the exsisting bug you have.

100% Asp.Net MVC is better than WebForms and it does no matter 2.0 or 3.5. Just try and you will understand my point:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM