在面板内触发自动回发事件时,modalpopupextender可见为false [英] modalpopupextender visible false when an autopostback event is fired inside the panel

查看:58
本文介绍了在面板内触发自动回发事件时,modalpopupextender可见为false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在触发文本更改事件时,我编写了一个文本框的自动回发事件.
所有这些控件都在面板内部,并且该面板是一个modalpopup.
触发textchanged事件时,模式弹出窗口可见false.
我认为是因为这次事件.

我该如何解决这个问题?有人有什么主意吗?

在此先感谢您.

I''ve written an autopostback event of a text-box while text changed event is fired.
All these controls are inside a panel and that panel is a modalpopup.
While textchanged event is fired modal popup visible false.
I think that because of this event.

How can i solve this issue? Does anyone have any idea?

Thanks in advance.

推荐答案

在textchanged事件代码的末尾尝试以下代码:

Try below code at the end of textchanged event code:

ModalPopupExtender ModalPopupExtender1 = (ModalPopupExtender)Parent.FindControl("<ModalPopupExtender name in parent page>");
ModalPopupExtender1.visible=true;





根据我的建议,您的代码已更改,

您只需从页面中删除更新面板,所有这一切都是由于updatepanel造成的,
否则将您的文本框& updatepanel外部的modalpopup,
您的问题将得到解决.
Hi,


changed in your code as per my suggesstion,

you just remove update panel from your page,all this occured due to updatepanel,
otherwise put your textbox & modalpopup outside the updatepanel,
your issue will be resolved.


这篇关于在面板内触发自动回发事件时,modalpopupextender可见为false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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