使用ASP.NET MVC3,url http:// localhost:22713 / tests#123456,代码如下:
Your user agent: @Request.UserAgent<br /> Url: @Request.Url.AbsoluteUri<br /> Url fragment: @Request.Url.Fragment<br />
收益:
Your user agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 Url: http://localhost:22713/tests Url fragment:
为什么片段总是空的?我需要能够在服务器端解析此信息.