如何在登录事件中获取Returnurl [英] How to fetch Returnurl in loggedin event

查看:121
本文介绍了如何在登录事件中获取Returnurl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击登录时,我没有在查询字符串中看到Returnurl我在登录控制时修改了登录事件。这是因为当用户超时时我无法在url中维护returnurl吗?请告诉我如何在登录事件中检索returnURL?这样我就可以将用户重定向到那个页面。



请帮助它非常紧急。

解决方案

您没有指定使用哪种身份验证技术。

但仍然使用以下Code语句,您可以找到返回URL:



 Request.Params [  ReturnUrl] 





您可以编写一些代码,以便在超时发生时您可以使用上面的返回URL将用户重定向到返回URL页面


I am not seeing Returnurl in query string when I do click on log in I am modified loggedin event at login control. Is that the reason I am not able to maintain returnurl in the url when users go timeout? Please tell me how can I retrive returnURL in loggedin event? So that I can redirect the user to that page.

Please help its really very urgent.

解决方案

You didn''t Specify which kind of Authentication technique are you using.
But still using the following Code statement you can find the Return Url:

Request.Params["ReturnUrl"]



You can just write some code so that when time out Occurs you can Redirect the User to the Return Url Page using the Above Return Url


这篇关于如何在登录事件中获取Returnurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆