Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2005, 06:40 AM
Registered User
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default chap 15

hello

i have a problem in chapter 15, i was trying to see what would happen if i didnt fill the given name and family name while registering , it should give a message box informing the user that these 2 fields are obligatory , but its giving page cannot be displayed and the following error : Error Type:
Microsoft JET Database Engine (0x80040E21)
Field 'Person.GivenName' cannot be a zero-length string.
/AddUser.asp, line 32
instead of giving the msgbox ...and also with respect to the code for logging out after i finish browsing the site , what's the code for it ?
can anyone help .
and ill be thankful .
maybe my questions are easy , but iam still a new student for asp and programming

 
Old July 6th, 2005, 08:56 AM
Registered User
 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi manal_saga,
Checking the mandory (or validity of) fields be done at html page using Javascript before submitting to asp for updating the database
eg.
if (document.form1.GivenName.value.length == 0)
    {
     alert("Missing Name Information")

    }

Also form fields that are not filled, when updating a database, they carry a null value in the updating query and this may lead to the error your getting.

Sorry I am also new Asp, also to chap15


 
Old July 10th, 2005, 03:29 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 chap 15 help needed twr Beginning PHP 1 January 5th, 2008 06:20 AM
Pro PHP Chap 15 kgmcmillen Pro PHP 1 April 20th, 2006 02:38 PM
help in chap 15 manal_sag BOOK: Beginning ASP 3.0 2 May 25th, 2005 02:59 AM
Sessions - Chap 15 mminnie BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 January 10th, 2005 04:25 AM
Chap 15 - Notifying the Bidder airhart BOOK: Beginning ASP 3.0 2 September 4th, 2003 03:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.