[英]Redirect to Login Page After Password Recovery
I have a login form, signup form and a password recovery form in my asp.net website. 我的asp.net网站上有登录表单,注册表单和密码恢复表单。 Also i have created login control, create user wizard, password recovery control in respective webforms.
我还分别在各自的Web表单中创建了登录控件,创建用户向导和密码恢复控件。 I want the user to be redirected to Login page after the password is being sent.
我希望在发送密码后将用户重定向到“登录”页面。
You can use SuccessPageUrl property as mentioned below : 您可以按如下所述使用SuccessPageUrl属性:
<asp:PasswordRecovery ID="PasswordRecovery1"
Runat="server" SuccessPageUrl="login.aspx" />
as mentioned in MSDN : 如MSDN中所述 :
it will redirect the user to the page defined in the SuccessPageUrl property after sending the user a new password.
在向用户发送新密码后,它将把用户重定向到SuccessPageUrl属性中定义的页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.