Reputation: 4519
I am trying to make a url string to one of my mapped routes in the CS file. I can do it in the aspx file via the html helpers. How do you make a url in the CS file?
Upvotes: 2
Views: 190
Reputation: 180787
Create an instance of System.Web.Mvc.HtmlHelper in your C# method, and use that to call your Html Helper methods.
Upvotes: 1