living in my life (史蘭諾系統整合服務)
2013年3月5日 星期二
[ASP.NET]使用 Request.Url取得目前頁面的相對位置 (Use Request.Url obtain the relative position of the current page)
問題
使用 Request.Url取得目前頁面的相對位置
解決方法
例如目前頁面為:
http://localhost/Folder/default.aspx
string nowPath = Request.Url.LocalPath;
nowPath 會是/Folder/default.aspx
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言