달력

112024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
http://www.velocityreviews.com/forums/t81512-htmltable-control-css-class.html


Default 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!

Posted by tornado
|