PC Review


Reply
Thread Tools Rate Thread

CustomValidator

 
 
Andrew Han
Guest
Posts: n/a
 
      23rd Jan 2008
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).
 
Reply With Quote
 
 
 
 
Nathan Sokalski
Guest
Posts: n/a
 
      23rd Jan 2008
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
(E-Mail Removed)
http://www.nathansokalski.com/

"Andrew Han" <(E-Mail Removed)> wrote in message
news:56589e20-3057-4819-b12c-(E-Mail Removed)...
>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).



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't use asp:CustomValidator K Viltersten Microsoft ASP .NET 5 24th Mar 2009 09:16 AM
Help with CustomValidator Beryl Small Microsoft ASP .NET 1 1st Dec 2004 04:51 PM
CustomValidator Philip Korolev Microsoft Dot NET 2 1st Dec 2004 09:35 AM
Using CustomValidator anony Microsoft ASP .NET 2 24th Sep 2004 03:19 PM
CustomValidator =?Utf-8?B?VG9t?= Microsoft ASP .NET 1 27th Feb 2004 01:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 AM.