开发者

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

开发者 https://www.devze.com 2023-03-07 07:14 出处:网络
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 beh

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

精彩评论

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

关注公众号