简体   繁体   中英

Updating an ajax model pop up in an update panel

I have a page with an update panel, this page also has an ajax model popup. When I click some buttons I make some changes in code behind and then show the popup. For some reason when I click the button in the update panel no changes occur in the popup.

Debugging through the click I see that the changes are applied but the popup is not refreshed.

Any suggestions would be greatly appreciated.

You need to register a post back trigger so that the popup is completely refreshed. This is of course if you want the page to post back, otherwise if you want those changes to be reflected in the popup you will need to use javascript.

example: asp:PostBackTrigger ControlID="UploadTemplateImageButton"

you have to set the panel visibility to false on page load. ex: panel1.Visible=false;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM