How do I disable all controls in ASP.NET page?

后端 未结 9 1645
旧时难觅i
旧时难觅i 2020-12-14 08:17

I have multiple dropdownlist in a page and would like to disable all if user selects a checkbox which reads disable all. So far I have this code and it is not working. Any s

9条回答
  •  無奈伤痛
    2020-12-14 09:04

    It would be easiest if you put all the controls you want to disable in a panel and then just enable/disable the panel.

提交回复
热议问题