Click here to Skip to main content
15,742,655 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends The following is my code for aspx file.
<head runat="server">
    <title></title>
    <link  rel="Stylesheet"  href="~/css/Pagedesigncss.css"  type="text/css"  runat="server"/>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table class="style1" width="100%" border="0" style="font-weight:bold;" cellpadding="0" cellspacing="0" bgcolor="#8093a8">
    <tr>
                <td colspan="2" width="25%" height="50"  align="left" valign="middle" bgcolor="#25578b">
                  Message Template Details</td>

            </tr>
    <tr>
    <td >Template Id
    </td>
    <td>

        <asp:TextBox ID="nametxt" runat="server" CssClass="roundedbox"
Height="20px" Width="245px"></asp:TextBox></td>

    </tr>
     <tr>
    <td >Template For
    </td>
    <td>
        <asp:DropDownList
            ID="DropDownList2" runat="server" CssClass="roundedbox">
        </asp:DropDownList>
    </td>
    </tr>
<tr>
    <td >Template
    </td>
    <td>
        <asp:TextBox ID="TextBox4" runat="server" CssClass="roundedbox" Width="375px"></asp:TextBox>
    </td>
    </tr>

    </table>

    </div>
    </form>
</body>

and my css file is

.roundedbox {
    background:#fff;
    font-family:Verdana,Arial, Helvetica, sans-serif;
    font-size:10pt;
    margin-left:auto;
    margin-right:auto;
    margin-top:1px;
    margin-bottom:1px;
    padding:3px;
    border-top:1px solid #CCCCCC;
    border-left:1px solid #CCCCCC;
    border-right:1px solid #999999;
    border-bottom:1px solid #999999;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}

but it does not applied in my page. please help me Advance thanks to all
Posted
Comments
Idle_Force 9-Aug-13 15:26pm    
It would have to be the path or spelling of the path to css file. Or the changes are not seen in the designer - try 'Run In Browser`.
baskaran chellasamy 9-Aug-13 15:31pm    
Yes. changes are not seen in the designer. why it is not happen? please explain me
Idle_Force 9-Aug-13 15:56pm    
Diff html engine I guess.
ZurdoDev 9-Aug-13 16:29pm    
What do you mean it isn't applied? Use the browser's developer tools to look and see if the css file is being loaded and if a different style is getting applied from a different css.

1 solution

Try changing your href value to match the one below...

ASP.NET
<link rel="Stylesheet" href="../css/Pagedesigncss.css" type="text/css"  runat="server" />


... note the two dots where you had the tilde character.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900