June 6th, 2007, 08:53 AM
How to set the css class of a td tag?
I need to set the css class of a <td> tag from the codebehind and there is no cssclass in the list of properties for that variable. Is there any other way to set the class of that tag? I can add all the style elements with td.Style.Add but thats not pretty when u have a lot of things and u already have those defined in a class.
June 6th, 2007, 12:54 PM
Re: How to set the css class of a td tag?
why does it have to be in codebehind ?
you can simply do this on the main page : <td class="myClass"></td>
however if you want to do it in codebehind i believe you would do something like
this link has more
rate my posts!
Click Here to Expand Forum to Full Width