在一个网站中,在App_Code中的类得到的路径
Directory.GetCurrentDirectory() "D://Program Files//Microsoft Visual Studio 8//Common7//IDE" string
Directory.GetDirectoryRoot(".") "D://" string
System.Web.HttpContext.Current.Request.ApplicationPath "/MailingSystem" string
System.Web.HttpContext.Current.Request.AppRelativeCurrentExecutionFilePath "~/FunctionModule/SendMail/ProductSending.aspx" string
System.Web.HttpContext.Current.Request.CurrentExecutionFilePath "/mailingsystem/FunctionModule/SendMail/ProductSending.aspx" string
System.Web.HttpContext.Current.Request.FilePath "/mailingsystem/FunctionModule/SendMail/ProductSending.aspx" string
System.Web.HttpContext.Current.Request.MapPath(".") "D://Flex//MailingSystem//FunctionModule//SendMail" string
System.Web.HttpContext.Current.Request.Url.ToString() "http://localhost:5228/mailingsystem/FunctionModule/SendMail/ProductSending.aspx?opType=modify&selectID=35" string
System.Web.HttpContext.Current.Request.Url.PathAndQuery "/mailingsystem/FunctionModule/SendMail/ProductSending.aspx?opType=modify&selectID=35" string
System.Web.HttpContext.Current.Request.Url.AbsolutePath "/mailingsystem/FunctionModule/SendMail/ProductSending.aspx" string
System.Web.HttpContext.Current.Request.Url.LocalPath "/mailingsystem/FunctionModule/SendMail/ProductSending.aspx" string