locked
ModalPopupExtender on Frameset page RRS feed

  • Question

  • User-1779779723 posted

    Hi

    I have a typical frameset page that separate the page into Top, Left and Main. I want to add modalpopupextender on the frameset page so that it 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:toolkitscriptmanager id="ScriptManager1" runat="server">
            </asp:toolkitscriptmanager>
        <asp:panel id="Panel1" runat="server" style="display: none" cssclass="modalPopup">
                some text here.
                        <asp:Button ID="btnClose" runat="server" Text="Close" OnClick="btnClose_Click" />
            </asp:panel>
        <asp:modalpopupextender id="Panel1_ModalPopupExtender" runat="server" dynamicservicepath=""
            enabled="True" targetcontrolid="btnPopup" popupcontrolid="Panel1" backgroundcssclass="modalBackground">
            </asp:modalpopupextender>
        <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>
    </div>
    </form>

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

        protected void Page_Load(object sender, EventArgs e)
        {
            this.Panel1_ModalPopupExtender.Show();
        }

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

     

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

    The cssclass="modalPopup" I have shows the popup in transparent view, so I should be able to see the frameset behinde. Also when i click the Close button, it shows a blank page.

     

    Please advise and thanks a lot!

     

    Brian

    Thursday, September 9, 2010 10:19 PM

All replies

  • User-1734649046 posted

    Hi,

    You can create custom update progress with modal popup extender.

    Please refer following

    http://geekswithblogs.net/rashid/archive/2007/08/24/Showing-Modal-Progress-Dialog-in-all-Ajax-Operation.aspx

    hope this helps

    Thursday, September 9, 2010 11:32 PM
  • User-1779779723 posted

    Hi, Ketan

    Thanks for your reply. 

    I am not sure my problem is related to the link you sent me.  I know how to deal with modalpopup when the page is the main section of the frameset. The problem is how to use modalpopup in the MASTER file of the FRAMESET.

    Put this way, you have a default.aspx file and it is nothing but a FRAMESET

     <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>

     

    How do you add ModalPopUp to this file?

     

    thanks again

     

    Brian

     

     

    Friday, September 10, 2010 12:22 AM