I am trying to make a url string for one of my routed routes in a CS file. I can do this in aspx file using html helpers. How do I create a url in a CS file?
You can use the UrlHelper class .
Create an instance of System.Web.Mvc.HtmlHelper in your C # method and use it to call the Html Helper methods.