Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

Try below code at the end of textchanged event code:

XML
ModalPopupExtender ModalPopupExtender1 = (ModalPopupExtender)Parent.FindControl("<ModalPopupExtender name in parent page>");
ModalPopupExtender1.visible=true;
 
Share this answer
 
Comments
sahabiswarup 18-Sep-12 5:33am    
Thanks for your effort..
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900