【发布时间】:2012-08-16 16:39:57
【问题描述】:
我在从变量中获取 hash 值时遇到了一些麻烦。
我正在使用AccountController 中的默认操作
[HttpPost]
public ActionResult LogOn(LogOnModel model, string returnUrl) { ... }
但如果我通过此链接:
http://localhost:1357/none/Account/LogOn?returnUrl=a/b/c#day-22
我永远无法捕捉到#day-22 的值
下面是登录后的断点:
我从来没有得到 HttpContext.Request.Url 对象的哈希值。
我可以做些什么将用户转发到正确的 URL带有哈希部分?
【问题讨论】:
-
@GovindKamalaPrakashMalviya 不完全一样。
标签: c# asp.net-mvc-3