Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all
i want to open a popup window when popup window already opened.
after that when i close a model popup window.then automatically open a model popup.
i don't want to open new window as given some solution.

thank...
Posted
Updated 18-Apr-12 23:23pm
v2
Comments
Sandeep Mewara 19-Apr-12 5:08am    
And the issue that you faced while trying it was?
Sandeep Mewara 19-Apr-12 5:49am    
Thats what you want! Did you try anything at all? Where did you got stuck? What was the issue/error?

You can use
Modal Pop Up Extender
 
Share this answer
 
Javascript
===================
function OpenPopup()
{
        window.open ("http://www.google.com","Google");
}



ASP.Net
==========

<asp:button id="Button1" onclick="javascript:OpenPopup();" runat="server" Text="Go"  />
 
Share this answer
 
v3
XML
Code Behind..........
....use any button click.......

Page.ClientScript.RegisterClientScriptBlock(GetType(), "JScript1", "window.scroll(0,0);", true);
                lblEmpSelect.Text = "Please select employee in the list.";
                ModalPopupExtender1.Show();
                Panel1.Visible = true;



Code Behind...........




 <asp:UpdatePanel runat="server" ID="Up">
        <ContentTemplate>
            <asp:Button ID="btnLogClose" runat="server" Style="display: none" />
            <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnLogClose"
                PopupControlID="Panel1" CancelControlID="ImageButton3" BackgroundCssClass="modalBackground"
                DropShadow="false" />
            <asp:Panel ID="Panel1" runat="server" Width="550px" Height="100px" Style="display: none"
                CssClass="modalPopup" BackColor="#FFFFFF" BorderColor="Gray" BorderStyle="Solid"
                BorderWidth="5px">
                <table width="100%" cellpadding="1" cellspacing="1">
                    <tr>
                        <td style="padding-right: 5px; width: 100%" align="right">
                            <table width="50%">
                                <tr>
                                    <td style="width: 95%" align="left">
                                    </td>
                                    <td style="width: 5%" align="right">
                                        <asp:ImageButton ImageUrl="~/Images/close.png" ID="ImageButton3" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <b>
                                <asp:Label ID="lblEmpSelect" runat="server" Text="" ForeColor="Red"></asp:Label></b>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
 
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