两种获得路径的测试

string preURL = Server.MapPath(DIR.DIR_EQUIPMENTUPDATE_URL);   //自定义页面路径
string url = Request.UrlReferrer.ToString();

 

测试结果如下:

preURL    "E:\\PROJECTS\\系统\\UI2011-07-23\\TechTransDeptSystem\\ProjectImplement\\EquipmentManagement\\EquipmentUpdate.aspx"   

url    http://localhost:27086//UI2011-07-23/HomePageTechTrans.aspx

转载于:https://www.cnblogs.com/zhangshufeng/archive/2011/07/25/2116678.html

上一篇:一个不错的免费界面库


下一篇:ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆?hr width=100% size=1 color=silver> HTTP 閿欒 404 - Not Found銆?/i>...