Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
WebPercentEditor - ASP.NET Validation Controls
posted

Can I use ASP.NET validation controls to enforce additional validations for data entered into a WebpercentEditor control.

I created a test page with ASP.NET data type validation (using Range Validator) on a WebPercentEditor control. Validation works just fine as long as there is no postback involved. But after a postback, if I submit the form the validation fails. If I tab in and tab out of the percent editor control, I don't see the same validation error again. Ami I missing something?

-Ramesh

 

 

Parents
No Data
Reply
  • 24497
    posted

    Hi Ramesh,

    That happens because WebPercentEditor has property DisplayFactor set to 100. The get Value on server gets devided by that and therefore range validation may fail.

    I suggest you to fix that by setting DisplayFactor=1

Children
No Data