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
BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 1st, 2008, 05:51 AM
Authorized User
 
Join Date: Mar 2008
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 Problems This Time

Initially I was getting a message that my UserName was too long to be stored in the database. I tried increasing the size of the column in the database but this did not help. I found out, by trial and error that by using the .Substring() function on My.User.Name I could remove the computer name from the authenticated name and the program would accept this.

However when I click OK to have the new user added to the database it is not added?????
I manually added the username to the database and assigned a password and now I do not get the new user message but the password is not recognised??????

Any suggestions before I tear out what is left of my hair?
Reply With Quote
  #2 (permalink)  
Old April 1st, 2008, 09:38 AM
Authorized User
 
Join Date: Mar 2008
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found part of the problem.

When the login screen appears it has the truncated name in the User text box (This name is also in the POUser table). However, when the password check is carried out the program is only comparing the password with the password for the first entry in the table (this is one I put in when testing earlier) and does not find the correct entry.

If I enter the password for the first line I am given access to the program even though the users names are different. Doh!!!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Chapter 17: don't waste time ishim BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 October 27th, 2007 12:46 PM
Problems with Chapter 3 Steve887 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 12 January 18th, 2007 07:43 PM
Refresh button?? Every time? (Chapter 2) phplearner BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 September 4th, 2006 09:03 AM
Problems with" i=i+1" and calculating time tronnen XSLT 4 June 6th, 2005 04:17 PM



All times are GMT -4. The time now is 11:56 AM.


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