Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
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
‹
›
Home
View web version
No comments:
Post a Comment