开发者

postback hide requirefieldvalidator asp.net

开发者 https://www.devze.com 2023-03-06 08:55 出处:网络
i am working with WepApplication and the problem is i have one textbox with autopostback=\"true\" and some other textboxes and dropdowns with Validators like requirefield n regularexpression etc..

i am working with WepApplication and the problem is i have one textbox with autopostback="true" and some other textboxes and dropdowns with Validators like requirefield n regularexpression etc.. when i Click on "Submit" button,

Form is validated client side and All Requirefiled validators shows but after this problem starts when i changes text on textbox(autopostback=true") all validators are hide... but note one thing i want to fire OnTextChanged event bz if i add CausesValidation="true" it will not call OnTextChanged

so is there any way to show validator(messages) even page autopostbacked....

help me plz.

thanx in a开发者_运维问答dvance...


Set the CauseValidation property of the TextBox to true.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号