How to add two CSS Class to control in the code behind ?

Posted by Space Cracker on Stack Overflow See other posts from Stack Overflow or by Space Cracker
Published on 2010-06-02T08:09:57Z Indexed on 2010/06/02 8:13 UTC
Read the original article Hit count: 127

Filed under:
|

I am setting 2 css class in the code behind in ASP.NET

I could either do:

txtBox.Attributes.Add("class", "myClass1");
txtBox.Attributes.Add("class", "myClass2");

it's always apply one Class .. How can i add thw two classes ?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about css