473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Data Validation

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
Jan 2 '06 #1
1 1346
On Mon, 2 Jan 2006 22:55:47 -0000, "Niclas"
<li*************@hotmail.com> wrote:
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
Jan 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sonia | last post by:
Has anybody done UI data validation usinf XML Schemas. Any pointers will help. Thanks!
2
by: Gustaf Liljegren | last post by:
Here's a very general programming question. I often wonder where to put the data validation when adding data to a struct or class, using its constructor. Suppose for example I got a class called...
1
by: Bill nguyen | last post by:
I use the sub below to detect data entry error. The problem is that users are still able to move out of the textbox AFTER the sub is run (and error msg popped up) without having to correct the...
4
by: kids_pro | last post by:
What is the different between Business rule & data validation? How much impact does it give in OOP concept? Thanks, Kid
0
by: ss | last post by:
Hi, I would like to know like what is the best method of writing validation code in the n-tier application. For example in Business Logic Layer How do I write Data Validation Code, what are all...
4
by: sanou | last post by:
Hi No doubt this question, or a similar version of it, has been asked before. But, I was looking around the forums and i couldn't find anything. I'm using VC++ to create a simple calculator...
2
by: =?Utf-8?B?dGFtZWU=?= | last post by:
I have a data list of over 1,000 spare parts. I set it up with a master data list in a separate workbook and data validation works fine. I need autocomplete so I tried inserting a combo box with...
2
by: KDawg44 | last post by:
I am validating some html form input data with some javascript. How do I prevent the form from performing the ACTION if the data validation fails? Thanks.
3
by: planey | last post by:
Hi, I was reading topic about setters and getters (http://www.thescripts.com/forum/thread631267.html) and wanted to ask, how they should be used? I have noticed that a general data validators suck,...
4
by: banderson | last post by:
Hello Bytes/Scripts folks! I am trying to implement validation for a combination of two fields in a table (through a form). I have a form “frmAddAddr2” that is bound to the table “tblLKUPAddr2”....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.