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

后端 未结 7 2206
清歌不尽
清歌不尽 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:52

    mydiv.Attributes("class") = mydiv.Attributes("class").Replace("forceHeight", "")
    

    The other answers did not work for me. Like the OP said, I'm not getting myDiv.CssClass in IntelliSense.

提交回复
热议问题