Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generic Control Validator 2

Status
Not open for further replies.

crazyboybert

Programmer
Jun 27, 2001
798
GB
Hi All

Having recieved no feedback on the "validate ascx seperately" thread I decided to go ahead and make a generic validator.

I've basically written a class which has a validate method that accepts a control as input. The method iterates through all child controls and validates them. It works pretty sweetly I think and should put an end to all the enabling/disabling validators or manually testing. I guess the next step is to turn it into a WebControl...

You can check out a demo and download the code if your interested at
Any feedback more than welcome.

Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Rob -- thanks for the code - looks good --
 
Hey Rob, just took a closer look at the generic validator -- very nice work -- will be useful for sure...
 
Thank you for sharing!
Very Nice, I also have to put in a plug for Fritz Onion's book I read it and use it often.
Marty
 
Hi All

For anyone who found the above class useful I have now updated this to a WebControl for ease of deployment. Thanks to LV for his suggestion in my other thread on this, thread855-603019, which pushed me in that direction.

The control can be downloaded at
Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top