ideas on building a strongly typed class to manage URLS for asp.net mvc

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-06-14T21:31:13Z Indexed on 2010/06/14 22:12 UTC
Read the original article Hit count: 239

Filed under:
|
|

I want a strongly typed url class that i will reference whenever I need a url for any links, redirecting, etc.

I don't like:

RedirectToActoin("Action", "Controller");

A site with 50+ views means any naming change is going to break allot of things.

I also want a user frienly api so I can do:

MyUrls.ControllnerName.ActionName

How can I achieve this? is it possible?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET