Click here to Skip to main content
11,641,087 members (64,222 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET SQL
AJAX :: Stop ModalPopupExtender From Closing buttion Click?

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

plase any one can help me??

<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 25-Jun-13 20:21pm
Edited 25-Jun-13 20:50pm
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I hope you are asking to close the modalpopup.

We can use

modalpopup.hide();
  Permalink  
Comments
breaker-code at 26-Jun-13 2:29am
   
i want to stop modalpopup hide.
KuttiSankar at 26-Jun-13 2:38am
   
which means you need to show it or hide it?
breaker-code at 26-Jun-13 2:39am
   
i want to show.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Use ModalPopUp.show();

Write the Controls to be showed, in Panel.

and trigger the targetid event when you want to show.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100