Remove a CSS class from HTML element in the code behind file

后端 未结 7 2067
清歌不尽
清歌不尽 2021-02-19 03:15

I have the following on my interface / webform:

Now I have a condition in my

7条回答
  •  有刺的猬
    2021-02-19 03:43

    mydiv.Attributes["class"] = mydiv.Attributes["class"].ToString().Replace("ClassName","")
    

提交回复
热议问题