Mart,
I finally solved my problem. I am just curious. Which do you prefer to use for input validation in ASP.Net: JavaScript or RequiredFieldValidator? I really like the way Required Expressions Validator works with email addresses. I wish that there was a way to force an user to re-enter the email address if it didn't exist. I have had several people who entered wrong email addresses in one of my forms before. It was really frustrating because I had to call them to find out the correct email address.
Here's the code that I put under Page Load:
If Page.IsPostBack = True Then
'Check that all of the validation controls
'on this page indicate valid input
If Page.IsValid Then
'Add the data as a new record in the database
Call AddValuesToDatabase()
Call AddValuesToEmail()
'Display the results "page"
Call DisplayResults()
End If
End If
Edited by Misty - 06 March 2005 at 12:58am