KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to generate a correct URL to a action in my ASP.NET MVC 3 website and this have to be done in the Application_Start in Gloabl.asax. I have tried to set a UrlHelper but the HttpContext.Current is always null? The adress i look for is somthing like this : http://www.mysite.se/MyController/MyAction . I have also tried VirtualPathUtility.ToAbsolute("~/") but that will only give me "/mysite/"
Tags (comma-separated)
Save Edits
Cancel