获取路径 [英] Get the Path

查看:66
本文介绍了获取路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有我的虚拟目录 http://localhost/RLA ,并且我有页面http://localhost/RLA/Network/net.aspx 和几页作为不同路径的第二个.我如何获得路径,例如"Network/net.aspx"? ?我有一个母版页,我需要获取路径.如果使用Page.Request.Path,我将获得/RLA/Network/net.aspx,但 http://localhost/RLA 最终将更改,因此我需要它来提供真正的路径只是Network/net.aspx.
谢谢.

Suppose I have my Virtual Directory http://localhost/RLA and I have page http://localhost/RLA/Network/net.aspx and several pages as the second of different paths. How could I get the path for example "Network/net.aspx" ? I have a master page and I need to get the path. If I used Page.Request.Path I will get /RLA/Network/net.aspx but http://localhost/RLA eventually will change so I need it to give the real path just Network/net.aspx.
Thank you.

推荐答案



这篇关于获取路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆