开发者

ASP.NET textbox cssClass gets overrwritten in GridView ItemTemplate after rendering

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 beha开发者_运维百科vior? (.NET 3.5)

As a workaround I added a 'style' attribute.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜