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("~"),
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment