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