问题描述
我的网页中有一个超链接,并且文本设置为忘记密码".
单击超链接后,将弹出密码恢复控件(使用AJAX ModalPopUp扩展器的实现).
扩展程序的弹出窗口效果很好,它可以显示密码恢复控件.但是,在输入用户名(位于UserNameTemplate步骤中)并单击提交"按钮后,控件不会继续执行第二步和第三步,它们应该是QuestionTemplate和成功模板.
我尝试将密码恢复控件放到网页上而不使用ModalPopUp扩展程序,恢复控件正常工作.
这是我的代码:(粗体字是相关代码)
I have a hyperlink in my webpage and the text is set to "forget password".
Upon clicking the hyperlink, the password recovery control will pops up (with the implementation of AJAX ModalPopUp extender).
The pop-up of the extender works very well, it can show the password recovery control. However, after entering the username (which is in the UserNameTemplate step) and hitting the "submit" button, the control does not continue to the 2nd and 3rd steps, which should be the QuestionTemplate and success template.
I have tried putting the password recovery control onto a webpage without using the ModalPopUp extender, the recovery control works normally.
Here is my code: (words that are bold are the relevant code)
<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
<asp:LoginView ID="LoginView1" runat="server" >
<AnonymousTemplate>
<asp:HyperLink ID="HyperLink2" runat="server">Forget Password</asp:HyperLink>
<asp:ModalPopupExtender ID="HyperLink2_ModalPopupExtender" runat="server" Enabled="True" TargetControlID="HyperLink2" PopupControlID="Panel1"> </asp:ModalPopupExtender>
<asp:Panel ID="Panel1" runat="server" BorderColor="Black" CssClass="Panel1" > <asp:PasswordRecovery ID="PasswordRecovery1" runat="server"> </asp:PasswordRecovery>
<asp:Button ID="btnOk" runat="server" Text="Ok"/> </asp:Panel>
</AnonymousTemplate>
为什么将密码恢复控件放在modalpopup扩展程序中无法正常运行?还有其他方法可以解决这个问题吗?
Why the password recovery control cannot function normally when it''s inside modalpopup extender? is there any other way to solve this??
推荐答案
这篇关于AJAX ModalPopUp扩展器内部的密码恢复.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!