ASP 向导控件嵌套在 ModalPopupExtender 和 UpdatePanel 问题中
我有一个向导,当单击“新条目”按钮时,它会显示在 ModalPopupExtender 中。向导本身嵌套在
<div id=Panel1">
<UpdatePanel>
<ContentTemplate>
<asp:wizard>
</asp:wizard?
</ContentTemplate>
</asp:UpdatePanel>
</div>
我为向导设置了一个事件中,如果在向导中单击完成按钮,则我隐藏 ModalPopupExtender。
问题在于,由于我从不“关闭”弹出窗口,因此下次单击“新条目”按钮时,弹出窗口将变得可见,并且向导将显示所有以前输入的数据。
我知道我的问题是因为现在关闭了 popupExtender,但我无法找到另一种方法来在按下完成按钮时从向导中关闭 popupExtender。
有人可以帮忙吗?谢谢?
I have a Wizard that i display in a ModalPopupExtender when a button "New Entry" is clicked. The Wizard itself is nested in
<div id=Panel1">
<UpdatePanel>
<ContentTemplate>
<asp:wizard>
</asp:wizard?
</ContentTemplate>
</asp:UpdatePanel>
</div>
I have set an event for wizard where if finishButton is clicked in wizard then i hide the ModalPopupExtender.
The problem with this is that since i never "close" the popup , the next time the "New entry" button is clicked the popup simply becomes visible and wizard is displayed with all previous entered data.
I know my problem is because of now closing the popupExtender but i couldn't figure out another way to close the popupExtender from within wizard when the finish button is pressed.
can someone please help? thanks?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,经过更多研究后,我自己找到了答案:
在 finishButton_Clicked 事件中,我刚刚添加了以下内容并存档了所需的结果:
Ok after little more researching i found the answer myself:
in finishButton_Clicked event i just added the following and the desired result is archived: