1

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.

2
  • Do you have a 'textBox' class explicitly defined in your css? Commented May 18, 2011 at 20:56
  • I found it in the default.skin file for asp:textbox entry. Now I know why it's there but why is it overriding my cssClass for that specific textbox? Even with 'EnableTheming' turned off for the page. Commented May 18, 2011 at 21:25

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.