J Jeff S Mar 23, 2004 #1 How does one get the full path to the site root - but not from a code-behind module? I need it in a helper class. Thanks
How does one get the full path to the site root - but not from a code-behind module? I need it in a helper class. Thanks
M MattB Mar 23, 2004 #2 Try looking into System.Web.HttpContext.Current.Request.ServerVariables(). That should have everything you need. Matt
Try looking into System.Web.HttpContext.Current.Request.ServerVariables(). That should have everything you need. Matt
J Jeff S Mar 23, 2004 #3 Thanks - this is what works: string tempPath = System.Web.HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"] ;
Thanks - this is what works: string tempPath = System.Web.HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"] ;