[英]How can I prevent automatic redirect in LoggedIn-event on the asp.net login control?
How can I prevent the asp login-controls automatic redirect on authentication in the LoggedIn-event? 在LoggedIn事件中,如何防止身份验证中的asp登录控件自动重定向? I want to make some controls available to the user before redirect... 我想在重定向之前向用户提供一些控件...
Stig 斯蒂格
Not sure if you can do this, however, you could use a custom login rather than the asp:login control using: 不知道是否可以执行此操作,但是,可以使用自定义登录名而不是使用以下命令的asp:login控件:
FormsAuthentication.SetAuthCookie
then redirect using Response.Redirect
or whatever redirect method you prefer. 然后使用Response.Redirect
或您喜欢的任何重定向方法进行重定向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.