Adding css class through aspx code behind

后端 未结 6 804
暖寄归人
暖寄归人 2020-12-08 13:13

I am using aspx. If I have HTML as follows:

I am hoping to dynamically add a css class through the

6条回答
  •  一整个雨季
    2020-12-08 13:20

    If you're not using the id for anything other than code-behind reference (since .net mangles the ids), you could use a panel control and reference it in your codebehind:

    
    
    classMe.cssClass = "someClass"
    

提交回复
热议问题