Question

I have a textbox inside a TemplateField column for a gridview. When I set the cssClass property for the textbox, it gets overwritten by a "textBox" class in the rendered web page. Is this normal behavior? (.NET 3.5)

As a workaround I added a 'style' attribute.

Was it helpful?

Solution

It seems that SkinId has precedance over CssClass: http://forums.asp.net/t/1469529.aspx/1

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top