Data Validation

N

Niclas

Hi,

I need to validate some data before it is submitted preferably using any of
the validation controls in Visual Studion (2003), but the validation is
slightly complex and require converision to datetime format etc. I suppose
it would be possible to write a regular expression to do the validation, but
I don't have the skills for this.

I would prefer to write a function that validates my data and return a
boolean that indicates if it is valid or not. Is it possible to incorporate
the outcome from a validation function to a validation summary control ?

Niclas
 
O

Otis Mukinfus

Hi,

I need to validate some data before it is submitted preferably using any of
the validation controls in Visual Studion (2003), but the validation is
slightly complex and require converision to datetime format etc. I suppose
it would be possible to write a regular expression to do the validation, but
I don't have the skills for this.

I would prefer to write a function that validates my data and return a
boolean that indicates if it is valid or not. Is it possible to incorporate
the outcome from a validation function to a validation summary control ?

Niclas

You bet it is! As a matter of fact there is a control for what you
want to do. It's called the CustomValidator control. When it fires
the ServerValidate event you can do your validation any way you need
to via a method or in lines of code in the event.


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top