c# - Modal popup extender disappears on gridview refresh -


i'm having update panel refreshing gridview every 2 seconds. i've added modalpopup extender confirm user action within gridview. , i've wrapped other controls in asp page in update panel avoid page being refreshed everytime.

while think i'm refreshing gridview whole page refreshing , modal popup extender disappear after 2 sec. please me solution.

strong text

this how aspx page looks like.

--mainupdatepanel-- --div-- --table-- --dropdown-- --button-- --textbox-- --/table-- --updatepanel1 --gridview item template buttons-- --/updatepanel1-- --updatepanel2-- --confirmbuttonextender-- --confirmbuttonextender> --modalpopup-- --/modalpopup-- --panel--

--buttons -- modalpopup --/panel-- --/updatepanel2-- --/div-- --/mainupdatepanel--

in code behind:

timer_click event i've called updatepanel1.update();

in click events of button inside gridview i've called updatepanel2.update();

if have multiple update panels on page , want them refresh independently need make sure set updatemode property of update panels conditional

also seems both update panels in turn wrapped in update panel need alter childrenastriggers property false else mainupdatepanel update inner update panels


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -