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