We help IT Professionals succeed at work.
Get Started

css to modal

VBdotnet2005
VBdotnet2005 asked
on
328 Views
Last Modified: 2012-05-11
I can't get my css file to apply to this page. It pops up ok.

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Modal.aspx.vb" Inherits="test_Modal" title="Untitled

Page" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
      <link href="../App_Themes/Theme1/test.css" rel="stylesheet" type="text/css" media="screen"/>

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>      
        <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton3" PopupControlID="Panel1"

CancelControlID="LinkButton2" Drag="true">
         </cc1:ModalPopupExtender>
         
        <asp:LinkButton ID="LinkButton3" runat="server">LinkButton</asp:LinkButton>
         
    <asp:PlaceHolder ID="PlaceHolder1" runat="server" >       
 
        <asp:Panel ID="Panel1" runat="server"  CssClass="modalPopup">
                <br />    
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">  
            <ContentTemplate>
             <asp:TextBox ID="txtfirstname_1" runat="server"></asp:TextBox>
              <cc1:TextBoxWatermarkExtender ID="txtfirstname_TextBoxWatermarkExtender"
                    runat="server" Enabled="True" TargetControlID="txtfirstname_1"
                    WatermarkText="Firstname">
                </cc1:TextBoxWatermarkExtender>
         
        </ContentTemplate>
       
        </asp:UpdatePanel>
           
      <asp:LinkButton ID="LinkButton2" runat="server">Close</asp:LinkButton>  
  </asp:Panel>&nbsp;
  </asp:PlaceHolder>
 
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>


Test.css   file



body
{
   margin:0;
   padding:0;
   border:none;
}

    /*Modal Popup*/
.modalBackground
{
    background-color: #C0C0C0;
    -ms-filter: alpha(opacity=70);
    -ms-opacity: 0.7;
}

.modalPopup
{
    background-color: #FF0066;
    border-width: 1px;
    border-style: solid;
    border-color: Gray;
    padding: 3px;
    width: 870px;
    overflow: auto;
}
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE