在“#"后,如何获取网址部分?从HttpRequestBase [英] How do i get the url part after a "#" from HttpRequestBase
本文介绍了在“#"后,如何获取网址部分?从HttpRequestBase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到这样的GET请求
i am receiving GET requests like this
http://localhost/controller/List#SearchGuid = 755d259d- e7c9-4c5a-bf2a-69f65f63df8d
,我需要阅读#后面的SearchGuid. 不幸的是,HttpRequestBase似乎隐藏了#之后的所有内容.
and i need to read the SearchGuid which is after the #. unfortunately the HttpRequestBase seems the hide everything past a #.
有人知道我怎么仍然可以从控制器动作中读取SearchGuid吗?
does somebody know how i could still read the SearchGuid from within the controller action?
tia.
推荐答案
您不能,它不会发送到服务器.
You can't, it doesn't get sent to the server.
这篇关于在“#"后,如何获取网址部分?从HttpRequestBase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文