Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear sir,

i have some problem when creating popup window.the problem is how to hide popup window.

let us suppose that i am work in one asp page and i am click tab then one popup window open and also some error found this page so i am using another popup window
but when i am closing this window the direction of page going on back to the asp page not in pop up window.

i want to code if i am in popup window then open another popup window when i am closed this another popup window so my page control goes to the first popup window.

thanks you in advanced !!
Posted

1 solution

use lik this ,

this one have the "x" symbol for closing the tab

C#
<asp:Button runat="server" ID="btnShow" Style="display: none" />
                    <ajax:ModalPopupExtender ID="ModalPopupExtender2"  runat="server" TargetControlID="btnShow"
                        PopupControlID="panelID" BackgroundCssClass="modalBackground" OkControlID="imgID">
                    </ajax:ModalPopupExtender>
                    <asp:Panel runat="server" ID="panelID" CssClass="modalPopup">
                        <div class="inner" id="div1">
                            <ol>
                                <li style="font-weight: bold; color: White; background-color: #5D7B9D;">
                                    <img id="imgID" src="../../images/cal_close.gif" alt="" align="right" />Edit_Comments
                                </li>
                            </ol>
 
Share this answer
 
v2

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