The CSSClass property takes a string value. Assume that a Web form has a text box control called "TextBox1", you would set the CSSClass property with this statement: TextBox1.CSSClass="TBStyle". "TBStyle", in this instance, would need to be defined in your style sheet. If you're going to use Styles.css (the default style sheet in a Visual Stuio.NET project) you need to include this directive in the <HEAD> tag in your .aspx page: <LINK href="Styles.css" type="text/css" rel="stylesheet"
From what I've seen, VS.NET does not seem to automate the insertion of the stylesheet directive into an .aspx page in any way. This seems rather curious, since there are so many other nice code-generation features in VS
By the way, once you've established a style sheet, you can instantiate style objects in your code, something like this
Dim MyStyle as New Styl
MyStyle.CssClass="TBStyle
Then, the style objects are usable with the ApplyStyle and MergeStyle methods of individual control objects. Personally, I've found this to be quite useful for getting things to really look the way I want them to