R – asp.net mvc url routing

asp.netasp.net-mvcroutingurl

i have a classic web project and i want to use asp.net mvc url routing just for rewrite url. is it possible without make much changes to my web project?

Best Answer

Routing is not part of ASP.NET MVC - it's just part of ASP.NET itself. The good news is that it works with both MVC and WebForms (ASPX files). Check out Phil Haack's blog post on how to get this to work.

The only changes you need to make to your application are to add some configuration items to web.config and then register your routes in global.asax.cs (or global.asax.vb if you're using VB).