modalpopup window code in separate html or aspx webpages......................

Last post 07-17-2007 3:42 PM by ecannizzo. 3 replies.

Sort Posts:

  • modalpopup window code in separate html or aspx webpages......................

    05-18-2006, 3:54 PM
    • Member
      615 point Member
    • newbie06
    • Member since 04-14-2006, 5:28 PM
    • Posts 437

    I have a masterpage with a login link and would like the modalpopup window to show up with the login control when the login link is clicked.

     

    If I follow the sample I would have to put the “login modalpopup window code” into the masterpage html code.

     

    Is there a way where I can have a login.aspx page and when I click on the login link on the masterpage the modalpopup window would show up with the login.aspx content displayed inside it?

     

    So that each modalpopup window would have its own html or aspx page. If I use the approach show in the sample the code becomes messy and hard to maintain.

  • Re: modalpopup window code in separate html or aspx webpages......................

    05-18-2006, 6:25 PM
    • Member
      615 point Member
    • newbie06
    • Member since 04-14-2006, 5:28 PM
    • Posts 437

    I have tried it with a web user control but it is not working.

    <!--Modal Popup window code -->

    <div style="display:none">

    <asp:Panel ID="Panel1" runat="server" CssClass="modalPopup">

    <p>Testing....</p>

    <uc2:WebUserControl ID="WebUserControl1" runat="server" />

    </asp:Panel>

    </

    div>

    <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server">

    <cc1:ModalPopupProperties TargetControlID="LinkButtonLogInOut" PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="Button1" CancelControlID="Button2" /></cc1:ModalPopupExtender>

    Any ideas how I could make the modalpopup window more dynamic.

  • Re: modalpopup window code in separate html or aspx webpages......................

    05-19-2006, 3:19 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    There was a similar thread yesterday in which I wondered if an IFRAME within the ModalPopup could be useful...

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: modalpopup window code in separate html or aspx webpages......................

    07-17-2007, 3:42 PM
    • Member
      10 point Member
    • ecannizzo
    • Member since 10-11-2006, 11:46 AM
    • Posts 11

    was there ever a resolution to this question? I would like to do the same thing as the author is suggesting.

     Thanks!

Page 1 of 1 (4 items)