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