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">
    <link  rel="Stylesheet"  href="~/css/Pagedesigncss.css"  type="text/css"  runat="server"/>

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

    <td >Template Id

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

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



and my css file is

.roundedbox {
    font-family:Verdana,Arial, Helvetica, sans-serif;
    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
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...

<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

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