CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Errors.Count

Print topic Send  topic

Author Message
Saud

Posts: 15
Posted: 01/29/2006, 10:45 AM

Hi All,

I wonder which executes first, the component-level validations or the recordform-level validations?

I have a record form that have 3 (required) fields. One of those fields is an email field (which will be validated against the built-in email validation regx).

This record form is not connected to any table, so it does not really do any insert, update, or delete processes. I want to use the (On Validate Event) to check if there are no errors and then only do some actions.

I use the following code in the OnValidate Even:

If ContactUs.Errors.Count = 0 Then  
  
SendEmail  
  
End If

The problem with this is that if all fields are supplied, the (SendEmail) function is called BEFORE the email validation action!

any help in this?

Thanks

Saud
View profile  Send private message
Saud

Posts: 15
Posted: 02/15/2006, 5:42 PM

Any thoughts on this?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.