modalpopup just a black box??????

Last post 06-02-2008 1:45 PM by dtabraha. 6 replies.

Sort Posts:

  • modalpopup just a black box??????

    05-17-2006, 8:17 PM
    • Member
      615 point Member
    • newbie06
    • Member since 04-14-2006, 5:28 PM
    • Posts 437

    ModalPopup

     

    My ModalPopup does not work. I see the text and the buttons on top of a black background. I don’t know why I am not getting the nice looking modalpopup window.

     

    Login.aspx

     

    <%@ Page Language="C#" MasterPageFile="~/PopUpForm.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Title="Untitled Page" %>

     

    <%@ Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="cc1" %>

     

    <asp:Content ID="Content1" ContentPlaceHolderID="PopUpFormContentPlaceHolder" Runat="Server">

     

    <atlas:ScriptManager ID="ScriptManager1" runat="server"></atlas:ScriptManager>

     

    <p><asp:LinkButton ID="LinkButton1" runat="server" Text="Click here to change the paragraph style"></asp:LinkButton></p>

     

    <div style="display:none">

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

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

        <asp:Button ID="Button1" runat="server" Text="OK" />

        <asp:Button ID="Button2" runat="server" Text="Cancel" />

        </asp:Panel>

    </div>

     

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

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

        </cc1:ModalPopupExtender>

    </asp:Content>

     

    PopupForm.master

     

    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="PopUpForm.master.cs" Inherits="PopUpForm" %>

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

        <title></title>

            <link href="App_Themes/BrownBeige/StyleSheet.css" rel="stylesheet" type="text/css" />

                <!--[if IE]>

            <link rel="stylesheet" type="text/css" href="App_Themes/BrownBeige/iewin-hacks.css" />

        <![endif]--> 

    </head>

    <body>

        <form id="frmPopUpMaster" runat="server">

        <div>

            <asp:contentplaceholder id="PopUpFormContentPlaceHolder" runat="server" />

        </div>

        </form>

    </body>

    </html>

     

    CSS

    /*Modal Popup*/

    .modalBackground {

          background-color:Gray;

          filter:alpha(opacity=70);

          opacity:0.7;

    }

     

    .modalPopup {

          background-color:#ffffdd;

          border-width:3px;

          border-style:solid;

          border-color:#ffffff;

          padding:3px;

    }

  • Re: modalpopup just a black box??????

    05-18-2006, 2:37 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    Your code superficially looks like the sample that comes with the Toolkit. You might try getting rid of the extra stylesheets from the master page and/or turning off the DropShadow for the ModalPopup to see if those changes fix things. If not, please reply back and we'll try to reproduce this.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: modalpopup just a black box??????

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

    Thanks for your reply, it was simple a cache issue. I should hit the refresh button more often.

    I still have one more question about the modalpopup window. I have a masterpage with a login link and would like the modalpopup window to show up with the login control.

     

    If I follow the sample I would have to put the “login modalpopup window code” into the masterpage. Is there a way where I can have a login.aspx page and when I click on the login link the modalpopup window would show up with the login.aspx content displayed inside it.

     

  • Re: modalpopup just a black box??????

    05-18-2006, 3:41 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    You could maybe have the ModalPopup host an IFRAME that points to the login page?

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: modalpopup just a black box??????

    12-13-2006, 5:57 AM
    • Participant
      1,398 point Participant
    • NNM
    • Member since 09-07-2006, 9:04 AM
    • Posts 541

    Same prob: black box, whenever DropShadow is True.

    Is anyone able to get a normal modalpopup WITH dropshadow? Just a lil bug in the extender maybe?

    Validation Complete
    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
    I'll always mark your post(s) as answer when it is!
  • Re: modalpopup just a black box??????

    12-19-2006, 6:52 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: modalpopup just a black box??????

    06-02-2008, 1:45 PM
    • Member
      24 point Member
    • dtabraha
    • Member since 01-26-2006, 1:19 PM
    • Posts 7

    I ran into a black box that was popping up whenever I put in a drop shadow, and someone pointed me to the DOCTYPE.

    When my doctype was blank or HTML it would produce that black box.

    When I switched it XHTML then the dropshadow worked correctly. 

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Page 1 of 1 (7 items)