ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





FAQ for the Form Handler sample:


How do I change the validation rules or add a new set?

At the top of the sample you'll find a function called ValidateField which takes two parameters sFieldValue, sFieldType. The first is the value that you want to validate. The second tells the function which set of rules to validate against. If you want to edit or add a new set of rules, all you need to do is find the appropriate Case or add a new Case to the Select Case statement and name it what you will pass in the second parameter. This is where the function will look when you pass it a parameter and tell it to validate against those rules.

For example: ValidateField("john@asp101.com", "email") will use the set of rules for the "email" case and will return True if "john@asp101.com" is a properly formatted email address.

How can I get a copy of the check.gif file?

Well... I'm not an artist, but I have to say this check mark is some of my best work! ;)

Seriously though...you can get a copy from here. If you're having trouble, try right-clicking on the above link and choosing "Save Target As..." or "Save Link As...". That should get you a copy.

I made some changes and now the For Each Field in Request.Form line picks up the submit button. Why?

The For Each command picks up each item in the given collection. Browsers usually only return form fields with names when they submit a form. So, as posted, the submit button doesn't have a name attribute and is therefore not returned to the server in the Request.Form collection. If you add a name it'll get returned and this is almost certainly what has happened here.

Was your question not answered above?

Ask a new question

Please note: This form is only for submitting questions about the sample for us to consider including in the FAQ. If we feel the question merits inclusion, we will include it along with a reply. We will not respond to your email individually.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers