Howto make RequiredFieldValidator change the css class of the parent div

后端 未结 3 1118
伪装坚强ぢ
伪装坚强ぢ 2020-12-20 15:14

I have a TextBox input element that has a RequiredFieldValidator as such:

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-20 15:49

    Use the following:

    
    

    This code decorates the original ValidatorUpdateDisplay function responsible for updating the display of your validators, updating the controltovalidate closest div.

提交回复
热议问题