I just spent an hour trying to figure out why i cannot change the CssClass property of <asp:TextBox> Whatever i enter in the property defaults to class = "textbox" when i render the page. What's going on??? Does anybody know a solution? I have 2 different input types i have to render separately. Is this a bug of some sort?

EDIT: I just ran a test on 2.0 and everything worked like a charm. I wonder how this went unnoticed in 3.5

Yeah, I'm seeing the same behavior. Very strange. CssClass attribute seems to work just fine on other controls, but on asp:TextBox, it seems to default to "textBox" in the rendered page, even when I set it as "td-date" (or whatever) in the source.. Really sucks because this text box input is critical to my app, and I don't want to have to style it by using the crappy ASP.NET-generated control ID.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.