Search code examples
c#asp.netautopostbackrangevalidator

Performing calculation as value changes in a textbox reseting my RangeValidated message


I am performing a calculation after user enters input into fields. Each field is range validated. Each field has AutoPostBack is set to true.

When user enter input into first field, then click on second field; the first field gets validated, but then auto post back kicks in and the validation looses it's value after page briefly reloads.

How can I avoid this?


Solution

  • Please Set CausesValidation="true" in your TextBox