Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
aspx Code.
----------


<ajx:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">

<asp:Panel ID="Panel1" runat="server" class="modalPopup" style="display:none;">
This is basic modal popup.



<asp:Button ID="btnOk" runat="server" Text="Ok" />
<asp:Button ID="btnClose" runat="server" Text="Close Me" />

<asp:Button ID="Button1" runat="server" Text="First Modal Popup" />
<ajx:ModalPopupExtender
BackgroundCssClass="modalBackground"
DropShadow="true"
OkControlID="btnOk"
CancelControlID="btnClose"
runat="server"
PopupControlID="Panel1"
id="ModalPopupExtender1"
TargetControlID="Button1">



CSS Code
--------
.modalBackground {
background-color:#000fff;
-ms-filter: filter:alpha(opacity=70);
-ms-filter: opacity:0.7px;
}


pls. give the correct solution. My Modal Popup window always displaying BGCOLOR is "Black".
pls. help us.

Regards,
Ganesh.S
Posted
Updated 25-Nov-19 1:35am

try this

CSS
/*Modal Popup*/
.modalBackground {
    background-color:Olive;
    filter:alpha(opacity=70);
    opacity:0.7;
}
.modalPopup {
    background-color:#ffffdd;
    border-width:3px;
    border-style:solid;
    border-color:Gray;
    padding:3px;
    width:250px;
}
 
Share this answer
 
Comments
gani7787 4-May-11 8:06am    
Sorry. Again i am getting the same problem. Modal popup displaying in black color and also css style "filter" is not known a css property-error.

Regards,
Ganesh.S
gani7787 4-May-11 8:33am    
Yes. i got it. I forgot to include css file in between head tag. now it's working.

<link href="css/ApplyCSS.css" type="text/css" rel="stylesheet"/>--> Added the code in between Head tag.

Thanks Mahendra.

Regards,
Ganesh.S
Mahendra.p25 4-May-11 8:44am    
Welcome
Simply we can use "background-color: none" in the div tag
 
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