使用 MVC 3,用户可以访问类似的 URLapp/Controller/Details/123
页面上的$.ajax请求回发到/Controller/AnotherAction.
在里面AnotherAction,我想IDNumber在浏览器中看到...
我试过看这个Request物体,但它们都是return Controller/AnotherAction:
HttpContext.Request.Path,
HttpContext.Request.Url.AbsolutePath,
HttpContext.Request.RawUrl,
HttpContext.Request.Url.ToString()
有没有办法从浏览器看到的详细信息中获取 ID 号?