asharajay
asharajay

Reputation: 1193

postback hide requirefieldvalidator asp.net

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 advance...

Upvotes: 0

Views: 753

Answers (1)

Akram Shahda
Akram Shahda

Reputation: 14781

Set the CauseValidation property of the TextBox to true.

Upvotes: 1

Related Questions