Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
AJAX :: Stop ModalPopupExtender From Closing buttion Click?

I want to stop closing Ajax module popup after fresh buttion.

plase any one can help me??

XML
<asp:Panel ID="Panel5" runat="server"
                CssClass="subGridPanel" Width="400">
                                    <asp:Panel ID="Panel6" runat="server" BorderColor="Transparent" BorderWidth="5"
                                        HorizontalAlign="Right">
                                        <asp:ImageButton ID="panel1Close0" runat="server" BackColor="Gray"
                                            Height="13px" ImageUrl="~/Resources/images/Close_button.jpg" ToolTip="Close"
                                            Width="13px" />
                                    </asp:Panel>
                                    <asp:Panel ID="Panel7" runat="server" CssClass="SubGrid" ScrollBars="Auto">
                                        <asp:Panel ID="CentrePanel0" runat="server" ScrollBars="Auto">
                                            <table style="width:100%;">
                                                <tr>
                                                    <td style="text-align: center" width="30%">
                                                        &nbsp;</td>
                                                    <td style="text-align: center" width="70%">
                                                        <asp:Label ID="lblhawb" runat="server" Font-Size="Small" ForeColor="Red"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right" width="30%">
                                                        <br />
                                                        Chage Code :
                                                        <br />
                                                        <br />
                                                    </td>
                                                    <td style="text-align: left" width="70%">
                                                        <asp:DropDownList ID="Dropdown_Curance0" runat="server" CssClass="input"
                                                            Width="75%">
                                                            <asp:ListItem>TEST</asp:ListItem>
                                                            <asp:ListItem>TEST1</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right" width="30%">
                                                        Type :</td>
                                                    <td style="text-align: left" width="70%">
                                                        <asp:DropDownList ID="DropDiz0" runat="server" CssClass="input" Width="75%">
                                                            <asp:ListItem>Select</asp:ListItem>
                                                            <asp:ListItem Value="1">Cash </asp:ListItem>
                                                            <asp:ListItem Value="2">Percentage</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right" width="30%">
                                                        Amount :
                                                    </td>
                                                    <td style="text-align: left" width="70%">
                                                        <asp:TextBox ID="txtcash_shipper_address" runat="server" Height="15px"
                                                            Width="75%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right" width="30%">
                                                        CurrencyType :</td>
                                                    <td style="text-align: left" width="70%">
                                                        <asp:DropDownList ID="Dropdown_Curance" runat="server" CssClass="input"
                                                            Width="75%">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right" width="30%">
                                                        Exchange Rate :</td>
                                                    <td style="text-align: left" width="70%">
                                                        <asp:TextBox ID="txtexchange" runat="server" Height="15px" Width="75%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center" width="30%">
                                                        <br />
                                                        <asp:Label ID="lblLKR" runat="server"></asp:Label>
                                                    </td>
                                                    <td style="text-align: center">
                                                        <br />
                                                        <asp:Button ID="btn_Cash_Ok"  runat="server" onclick="btn_Cash_Ok_Click1"
                                                            Text="OK" Width="75px"  />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center" width="30%">
                                                        &nbsp;</td>
                                                    <td style="text-align: center">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center" width="30%">
                                                        &nbsp;</td>
                                                    <td style="text-align: center">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="text-align: center" width="30%">
                                                        <asp:GridView ID="manifestGrid" runat="server" AutoGenerateColumns="False"
                                                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                                                            CellPadding="3" Width="100%">
                                                            <Columns>
                                                                <asp:BoundField DataField="ChageCode" HeaderText="ChageCode" />
                                                                <asp:BoundField DataField="USDAmount" HeaderText="USDAmount" />
                                                                <asp:BoundField DataField="LKRamount" HeaderText="LKRamount" />
                                                            </Columns>
                                                            <FooterStyle BackColor="White" ForeColor="#000066" />
                                                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                            <RowStyle ForeColor="#000066" />
                                                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                            <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                                            <SortedAscendingHeaderStyle BackColor="#007DBB" />
                                                            <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                                            <SortedDescendingHeaderStyle BackColor="#00547E" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center; width: 0%;" width="30%">
                                                        &nbsp;</td>
                                                    <td style="text-align: center; width: 15%;" width="30%">
                                                        <asp:Button ID="btnCash" runat="server" Text="Save" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                        </asp:Panel>
                                    </asp:Panel>
                                </asp:Panel>&nbsp;</td>
                        <td style="width: 10%; height: 100%;">
                            &nbsp;</td>
                    </tr>
                    </table>


                <br />
            </div>
        </div>
    </div>



this is my Code i want to remove pop closing btnCash clik event
Posted
Updated 25-Jun-13 20:50pm
v3

I hope you are asking to close the modalpopup.

We can use

modalpopup.hide();
 
Share this answer
 
Comments
[no name] 26-Jun-13 2:29am    
i want to stop modalpopup hide.
KuttiSankar 26-Jun-13 2:38am    
which means you need to show it or hide it?
[no name] 26-Jun-13 2:39am    
i want to show.
Use ModalPopUp.show();

Write the Controls to be showed, in Panel.

and trigger the targetid event when you want to show.
 
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