虚拟路径
代码如下:
Server.MapPath("~/") 取得的就是虚拟路径
取绝对路径
string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory;
取物理路径和应用程序路径
System.Web.HttpContext.Current.Request.ApplicationPath
上一篇:ASP.NET如何使用广告控件AdRotator
下一篇:asp.net的逻辑运算符有哪些