Stop postback on TextChanged

后端 未结 5 1659
鱼传尺愫
鱼传尺愫 2021-01-13 17:26

I have a textbox in an aspx page that has a TextChanged event attached to it. I also have a validator attached to the textbox.

When the text is changed, the validate

5条回答
  •  萌比男神i
    2021-01-13 17:50

    Just sharing an inline, shorter version of the accepted answer:

    
    

    Having the same problem with a RequiredFieldValidator, the above worked for me.

    Known nag: the designer complains that "onchange" is not a valid server-side attribute.

提交回复
热议问题