modalpopupextender with frameset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bzeng
    New Member
    • Sep 2010
    • 1

    #1

    modalpopupextender with frameset

    Hi

    I have a typical frameset page (Default.aspx) that separate the page into Top, Left and Main. I want to add modalpopupexten der on the frameset page so that the popup covers the WHOLE SCREEN.

    ------------- Default.aspx file ---------------

    <form id="form1" runat="server">
    <div>
    <div style="display: none">
    <asp:button id="btnPopup" cssclass="ms-button" runat="server" />
    </div>
    <asp:toolkitscr iptmanager id="ScriptManag er1" runat="server">
    </asp:toolkitscri ptmanager>
    <asp:panel id="Panel1" runat="server" style="display: none" cssclass="modal Popup">
    some text here.
    <asp:Button ID="btnClose" runat="server" Text="Close" OnClick="btnClo se_Click" />
    </asp:panel>
    <asp:modalpopup extender id="Panel1_Moda lPopupExtender" runat="server" dynamicservicep ath=""
    enabled="True" targetcontrolid ="btnPopup" popupcontrolid= "Panel1" backgroundcsscl ass="modalBackg round">
    </asp:modalpopupe xtender>
    </div>
    </form>

    <frameset rows="86,*" frameborder="0" border="0" framespacing="0 ">
    <frame name="Top" scrolling="no" src="Top.aspx" frameborder="0" marginheight="0 " marginwidth="0" />
    <frameset id="frame" cols="150,*" frameborder="0" >
    <frame name="Left" frameborder="0" noresize scrolling="no" src="Left.aspx? ParentID=1" />
    <frame name="Main" scrolling="yes" src="Blank.aspx " />
    </frameset>
    <noframes>
    </noframes>
    </frameset>

    ------------ Default.aspx.cs --------------

    protected void Page_Load(objec t sender, EventArgs e)
    {
    this.Panel1_Mod alPopupExtender .Show();
    }

    protected void btnClose_Click( object sender, EventArgs e)
    {
    this.Panel1_Mod alPopupExtender .Dispose();
    }



    It shows the modalpopup when the page loads, but the frameset does not showup.

    The backgroundcsscl ass="modalBackg round" is transparent so I should be able to see the frameset behinde the popup. But there is nothing behind and if I click the Close button on the pop, it return to a blank page.

    How can I make the modalpopup to work on a typical frameset page?

    Thanks in advance!
Working...