Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have ModalPopupExtender that contain buttons when any post-back occur into this modal it hides.

XML
<cc1:ModalPopupExtender id="mod1"  runat="server" TargetContrlId="button1"
PopUpControlID="panel1" okControlID="btnOK">

<asp:Panel id="panel1" runat="server">
<asp:button id="button1" ....
<table>
<tr>
<td>
<asp:Buttom id="btnOK" runat ...
here is another button do post-pack to fill gridview into this panel
</td>
</tr>
</table>


Thanks all
Posted
Updated 16-Mar-11 23:38pm
v2
Comments
Sandeep Mewara 17-Mar-11 5:38am    
Wrapping code part in PRE tags makes the question readable.
Albin Abel 17-Mar-11 5:49am    
Popups hides after it finish the job. Thats why it is popup. What you want to acheive
mohammed sadeq 17-Mar-11 7:22am    
i want to bind grid into poup to see result >>after close popup hide ok .
Albin Abel 17-Mar-11 7:59am    
So what is the problem to have the grid inside the panel and show it while popup
mohammed sadeq 17-Mar-11 8:26am    
the problem is when do any postback into this panel such as select row from grid or any postback
the popup hide .. i want to close this popup manual

Write this code in the page_Load outside
IsPostback

mod1.Show(); 
 
Share this answer
 
Comments
Michael Schauffler 31-Oct-11 12:12pm    
This does not work if you have multiple ModalPopups and or other controls that will cause a postback.
nilarka 6-Jul-12 4:07am    
Solves Problem
<>&[]
C#
<pre lang="c#"><big><big><big><big><big><big><big><big><big><big><big><big><big><small><small><small><small><small><small></small></small></small></small></small></small></big></big></big></big></big><<b>/big></big></big></big></big></big></big></big></big>
 
Share this answer
 

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