CustomValidator
am 23.01.2008 22:25:40 von Andrew Han
I have a webpage with about 10-15 textbox controls. I want to write
one ClientValidationFunction to be used by all the textbox controls.
However, every textbox is going to have a different value range. How
can I pass parameters (the allowed min and max value of each textbox)
into one generic ClientValidationFunction?
(I would use the RangeValidator control, but as stated in my previous
post, it doesn't seem to handle scientific notation).
Re: CustomValidator
am 23.01.2008 23:50:53 von Nathan Sokalski
I think the best thing for you to do in this case is write your own
validator that derives from the BaseValidator class.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
"Andrew Han" wrote in message
news:56589e20-3057-4819-b12c-324363278a00@y5g2000hsf.googleg roups.com...
>I have a webpage with about 10-15 textbox controls. I want to write
> one ClientValidationFunction to be used by all the textbox controls.
> However, every textbox is going to have a different value range. How
> can I pass parameters (the allowed min and max value of each textbox)
> into one generic ClientValidationFunction?
>
> (I would use the RangeValidator control, but as stated in my previous
> post, it doesn't seem to handle scientific notation).