UpdatePanel 和 ModalPopup 扩展器
我的表单设计为
<asp:Panel runat="server" Id="xyz">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
'Gridview with edit/delete - opens detailsview(edit template) with data
for editing
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
'Hyperlink to open detailsview(insert template) for inserting records
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<asp:Panel runat="server" Id="xyz1">
'Ajax modal popup extender control
</asp:Panel>
当我单击更新、交替插入时它可以完美运行, 但是当我单击插入超链接(位于 gridview 之外)并关闭/取消弹出窗口而不进行任何插入,然后再次单击插入时,它不会调用 insert_onclick 事件。如果我单击其他按钮并单击此按钮,它就会起作用。可能是什么原因导致此问题以及如何解决?
I have my form designed as
<asp:Panel runat="server" Id="xyz">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
'Gridview with edit/delete - opens detailsview(edit template) with data
for editing
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
'Hyperlink to open detailsview(insert template) for inserting records
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<asp:Panel runat="server" Id="xyz1">
'Ajax modal popup extender control
</asp:Panel>
It works perfectly when i click update, insert alternately,
but when i click insert hyperlink (which is outside gridview) and close/cancel popup without any insert and then again click insert it doesn't call insert_onclick event. It works if i click some other button and click this button. What could be causing this issue and how can i solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了。在插入超链接中,我设置 CausesValidation = False 并且它正在工作。我在弹出窗口中需要字段验证器,它们会导致问题。
I solved it. In insert hyperlink i set CausesValidation = False and it is working . I have required field validators in popup and they where causing issue.