First Get the ASP.NET application's virtual application root path on the server using HttpRequest.ApplicationPath Property.
Now map the specified virtual path to a physical path using Request.MapPath() Method.
string
appPath = HttpContext.Current.Request.ApplicationPath;
Now map the specified virtual path to a physical path using Request.MapPath() Method.
string physicalPath = HttpContext.Current.Request.MapPath(appPath);
No comments:
Post a Comment