title: Modal popup extender disappears on gridview refresh
body: <p>I'm having an update panel which is refreshing the gridview every 2 seconds. I've added modalpopup extender to confirm user action within the gridview. And I've wrapped all other controls in my asp page in another update panel to avoid the page being refreshed everytime. </p>
  
  <p>While I think I'm only refreshing the gridview the whole page is refreshing and the modal popup extender disappear after 2 sec. Please help me with a solution. </p>
  
  <p><strong>strong text</strong></p>
  
  <p>This is how my aspx page looks like. </p>
  
  <p>--Mainupdatepanel--
  --div--
  --table--
  --dropdown--
  --button--
  --textbox--
  --/table--
  --updatePanel1
  --gridview with item template buttons--
  --/updatepanel1--
  --updatepanel2--
  --confirmbuttonextender--
  --confirmbuttonextender>
  --modalpopup--
  --/modalpopup--
  --panel--</p>
  
  <p>--buttons -- for modalpopup
  --/panel--
  --/updatepanel2--
  --/div--
  --/MainUpdatepanel--</p>
  
  <p>In the code behind:</p>
  
  <p>Timer_click event I've called updatepanel1.update();</p>
  
  <p>In the click events of the button inside gridview I've called updatepanel2.update();</p>