Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 03, 2011 02:28 PM by wetlip
Member
385 Points
257 Posts
Sep 02, 2011 10:16 PM|LINK
in the css file you can refer a style vto a element in the aspx page
but how how to refer to this rows /
tr doesnt work tr.even doesnt work
TableRow doesnt work TableRow.even doesnt work
<asp:TableRow class="even" runat="server"> <asp:TableCell runat="server" Width="200px"></asp:TableCell> <asp:TableCell runat="server" Width="150px"></asp:TableCell> </asp:TableRow>
Contributor
6740 Points
1257 Posts
Sep 02, 2011 10:33 PM|LINK
573 Points
235 Posts
Sep 02, 2011 10:50 PM|LINK
<STYLE Type="text/css"> .MyFirstClass {background-color:#b0c4de; } .MySecondClass{ background-color:#007700; } </STYLE> <asp:TableRow class="even" runat="server" CssClas="MyFirstClass"> <asp:TableCell runat="server" Width="200px" CssClas="MySecondClass" ></asp:TableCell> <asp:TableCell runat="server" Width="150px" CssClas="MySecondClass"></asp:TableCell> </asp:TableRow>
Maybe try that.
Sep 03, 2011 04:07 AM|LINK
As the previous post suggests you might have to use the CssClass property.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol.cssclass.aspx
<asp:TableRow CssClass="even"> and TR.even in the css.
Sep 03, 2011 02:28 PM|LINK
cssclas doesnt work, class and cssclass does.
wetlip
Member
385 Points
257 Posts
css style for asp.net tablerow
Sep 02, 2011 10:16 PM|LINK
<asp:TableRow class="even" runat="server"> <asp:TableCell runat="server" Width="200px"></asp:TableCell> <asp:TableCell runat="server" Width="150px"></asp:TableCell> </asp:TableRow>jerryjoseph
Contributor
6740 Points
1257 Posts
Re: css style for asp.net tablerow
Sep 02, 2011 10:33 PM|LINK
linkedin | twitter | www.jerryjoseph.net
xRidx
Member
573 Points
235 Posts
Re: css style for asp.net tablerow
Sep 02, 2011 10:50 PM|LINK
<STYLE Type="text/css"> .MyFirstClass {background-color:#b0c4de; } .MySecondClass{ background-color:#007700; } </STYLE> <asp:TableRow class="even" runat="server" CssClas="MyFirstClass"> <asp:TableCell runat="server" Width="200px" CssClas="MySecondClass" ></asp:TableCell> <asp:TableCell runat="server" Width="150px" CssClas="MySecondClass"></asp:TableCell> </asp:TableRow>jerryjoseph
Contributor
6740 Points
1257 Posts
Re: css style for asp.net tablerow
Sep 03, 2011 04:07 AM|LINK
As the previous post suggests you might have to use the CssClass property.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol.cssclass.aspx
<asp:TableRow CssClass="even"> and TR.even in the css.
linkedin | twitter | www.jerryjoseph.net
wetlip
Member
385 Points
257 Posts
Re: css style for asp.net tablerow
Sep 03, 2011 02:28 PM|LINK
cssclas doesnt work, class and cssclass does.