Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 6th, 2005, 07:40 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
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

  #2 (permalink)  
Old July 6th, 2005, 09:56 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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


  #3 (permalink)  
Old July 10th, 2005, 04:29 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

:)

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03:38 PM
help in chap 15 manal_sag BOOK: Beginning ASP 3.0 2 May 25th, 2005 03: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 04:05 PM



All times are GMT -4. The time now is 03:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.