ASP.Net checkbox missing CSS class

前端 未结 5 1617
走了就别回头了
走了就别回头了 2020-12-17 15:03

I have the following ASP.Net check box control added to a page:

Bu

5条回答
  •  自闭症患者
    2020-12-17 15:42

    I found a different answer to this, you can use the property

    MyCheckBox.InputAttributes["class"] = "myClass";
    

    to assign a class directly to an asp checkbox from the codebehind. Just noting this since I found this post through Google and the answer specified wouldn't work for me.

提交回复
热议问题