Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Monday, March 24, 2014
How to get application root path in ASP.MVC 3 and 3+
string rootpath = HttpContext.Current.Request.ApplicationPath;
Or
string rootpath = Url.Content("~"),
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)