Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 November 13th, 2009, 04:10 PM
Authorized User
 
Join Date: Apr 2009
Posts: 48
Thanks: 16
Thanked 0 Times in 0 Posts
Default Login & CreateUserWizard controls remember me??

Hi there,

I have followed the Try it outs on p528 and p532 where the Login and signup pages are being created.

I created some user accounts and tried them out, all seems to work ok. ACCEPT that the Login and CreateUserWizard controls continu to come up in the browser with 1 of the users including password that I created as a default; when I open Login.aspx or SignUp.aspx in the browser the User Name and Password fields are already filled with these values.
I never even checked the "remember me" checkbox.

I triple checked the code, even threw away my code and replaced it with the source code without any change, this user keeps coming up.
I also checked the web.config and the strange thing is that when I try to log in with this default user that it does not log in, nor can I change the password for it, it gives the following message "We were unable to access your information. Please try again."

So the fault must be somewhere else...but where??

Any suggestions anybody?
Thanks in advance
 
Old November 13th, 2009, 04:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

ASP.NET never fills in the password field for you so I don't think this is ASP.NET related. My guess is that you are using Firefox which remembers and fills in user names for you like this. or some other browser with that behavior (or a plugin).

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 14th, 2009, 05:14 AM
Authorized User
 
Join Date: Apr 2009
Posts: 48
Thanks: 16
Thanked 0 Times in 0 Posts
Default Thanks, Imar it must be browser related

Hi Imar,

You are right, I am using firefox. So it must be browser related. I checked out the project on internet explorer and there it comes up with empty textboxes.
However, 2 strange thing are happening in firefox
  • even when I cancel all history it keeps on insisting with the same user name and password, filled in as default into those textboxes.
  • with the planetwrox source code it does not do that, the textboxes come up empty as they should even after making some user accounts.
So what can be wrong with my browser settings?

Thanks, Robin
 
Old November 14th, 2009, 05:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Robin,

Quote:
even when I cancel all history it keeps on insisting with the same user name and password, filled in as default into those textboxes.
Yeah, that doesn't always seem to work well. Try Tools | Options, then go the Security tab. There you can manage (and delete) the "Saved Passwords".
In addition you can do it manually. Clear the User Name text box, make sure your cursor is in the box and press the down key. A list with recorded user names comes up. Using the delete key you can remove the ones you don't want to keep.
Quote:
with the planetwrox source code it does not do that, the textboxes come up empty as they should even after making some user accounts.
Firefox remembers the settings per site, so maybe you're viewing the site on a different address?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
robbaralla (November 14th, 2009)
 
Old November 14th, 2009, 05:41 AM
Authorized User
 
Join Date: Apr 2009
Posts: 48
Thanks: 16
Thanked 0 Times in 0 Posts
Default ok that worked!

Hi Imar,
That was fassssst!
as you said, taking out those specific passwords did the trick.

I still can't figure out though why firefox did not remember the passwords of the users in planetwrox, and then remembering those passwords and usernames is one thing.... actually filling them out in the textboxes without even typing in the first letter of the user name is another thing all together.
Anyway, laten we er geen wetenschap van maken (let's not make a science out of it). Problem solved!

Thanks again,

Robin
 
Old November 14th, 2009, 06:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

When you enter a user name and password, Firefox pops up an info bar above the page with options that control whether you want to store the user name and password or not. Maybe that explains it?

Anyway, glad it got solved.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
robbaralla (November 14th, 2009)
 
Old November 14th, 2009, 06:33 AM
Authorized User
 
Join Date: Apr 2009
Posts: 48
Thanks: 16
Thanked 0 Times in 0 Posts
Default

That could explain it, I could have clicked on the wrong button there.
In conclusion; there are a lot of things to pay attention to... maybe it is a science after all.

Thanx, Robin





Similar Threads
Thread Thread Starter Forum Replies Last Post
using checkbox in login form remember me next tim avnishraj23 ASP.NET 2.0 Basics 1 December 4th, 2007 08:36 PM
CreateUserWizard and Highlight controls psychonet BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 4th, 2007 06:45 PM
Shading on remember me check box and login backgou mmmctigue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 July 20th, 2007 09:10 PM
question about login and "remember me next time" hertendreef ASP.NET 2.0 Professional 0 February 14th, 2007 07:29 AM
Remember Login surendran PHP How-To 1 January 6th, 2005 08:09 AM





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