neodatatype Posted August 20, 2003 Posted August 20, 2003 Hi all! How can I get the root directory of my site? Looking with the System.IO.Directory it seems that the root is the root of the disk where the framework is installed (or worse, the dir. of my account). How can I get something similar to the old ASP Server.MaphPath()? Thanx! Quote > NeoDataType.net < Try my Free .Net Reporting Tool!
WebJumper Posted August 20, 2003 Posted August 20, 2003 It gives [c#] Server.MapPath(""); [c/#] Quote
*Gurus* Derek Stone Posted August 20, 2003 *Gurus* Posted August 20, 2003 Use [msdn=System.Web.HttpRequest]Request.ApplicationPath[/msdn] or [msdn=System.Web.HttpRequest]Request.PhysicalApplicationPath[/msdn]. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.