Thursday, April 09, 2009

Retriving application path

Virtual path or web path

dim webPath as string = HttpContext.Current.Request.ApplicationPath

works the same as "~"


Physical is the actual path
dim physicalPath as string = HttpContext.Current.Request.MapPath(appPath)

0 Comments:

Post a Comment

<< Home