http://www.velocityreviews.com/forums/t81512-htmltable-control-css-class.html
Re: HtmlTable control css class
Thanks Jeffrey, this works just fine. It is perhaps worth noting that
Attributes["class"] = "myCSSClass" uses C# syntax. VB is
Attributes("class") = "myCSSClass". This trips me up regularly - I much
prefer C# syntax, but am sometimes forced to use VB.
> Alfred,
> Any time you want to add any attribute that may not be included in the
> code, just use HtmlTable.Attributes["class"] = "myCSSClass";
> This will work for any attribute.
>
> Best regards,
> Jeffrey Palermo
>
> "Alfred Salton" <> wrote in message
> news:2004062721504216807%alfredsalton@hotmailcom.. .
>> Can anyone show me how to set the css class of an HtmlTable control in
>> code on the server?
>>
>> I can't find any indication that the css class is a property of the
>> HtmlTable, HtmlTableRow and HtmlTableCell classes. I'm getting the
>> uncomfortable feeling that this can't be done, even though it seems
>> incredible to me!
Attributes["class"] = "myCSSClass" uses C# syntax. VB is
Attributes("class") = "myCSSClass". This trips me up regularly - I much
prefer C# syntax, but am sometimes forced to use VB.
> Alfred,
> Any time you want to add any attribute that may not be included in the
> code, just use HtmlTable.Attributes["class"] = "myCSSClass";
> This will work for any attribute.
>
> Best regards,
> Jeffrey Palermo
>
> "Alfred Salton" <> wrote in message
> news:2004062721504216807%alfredsalton@hotmailcom.. .
>> Can anyone show me how to set the css class of an HtmlTable control in
>> code on the server?
>>
>> I can't find any indication that the css class is a property of the
>> HtmlTable, HtmlTableRow and HtmlTableCell classes. I'm getting the
>> uncomfortable feeling that this can't be done, even though it seems
>> incredible to me!
'.NET > ASP.NET' 카테고리의 다른 글
asp.net TreeView IE 7 에서 스타일 깨질때... (0) | 2008.07.28 |
---|---|
[ASP.NET] Response.End, Response.Redirect 또는 Server.Transfer를 사용하면 ThreadAbortException이 발생한다 (0) | 2008.04.18 |
masterpage 사용시 FindControl 이 불편하여 Reflection 으로 직접 컨트롤을 찾는다 (0) | 2007.10.11 |
CrystalReport DataSet Binding.. (0) | 2006.12.18 |
[ajax.net] UpdatePanel: having fun with errors (0) | 2006.11.27 |