vs2008 asp.net 如何得到当前页面的路径+文件名
我说的是那种能用于超链接的路径,不是实际磁盘存放路径,想得到的类似如下:
~/a/b/c/xyz.apsx
要从根目录开始
------解决方案--------------------------------------------------------
- C# code
Request.AppRelativeCurrentExecutionFilePath;
Request.AppRelativeCurrentExecutionFilePath;