Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Can't initialize password textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parrot - 03 Mar 2008 03:55 GMT
I am using information from a cookie to initialize a password box but the
password is blank when displaying the web page.  Can anyone explain why I
can't programmatically initialize a password textbox.  I am able to intialize
the user id textbox but not the password box.  I inspect the Password.Text
value in debug mode and it has the correct value but yet the password box is
blank when the page is displayed.
Dave
Ignacio Machin ( .NET/ C# MVP ) - 03 Mar 2008 12:47 GMT
Hi,

>I am using information from a cookie to initialize a password box but the
> password is blank when displaying the web page.  Can anyone explain why I
[quoted text clipped - 5 lines]
> blank when the page is displayed.
> Dave

Have you read the docs? maybe that is the expected way.
IMO it should be like that, otherwise a savvy user could do a right click,
see code and see your password just there.
Parrot - 03 Mar 2008 15:17 GMT
Then how do programmers handle initializing passwords for those who want
their password remembered?  I know that when I want my password remembered
the password is intialized with asteriks in the box.   It seems to me the
only way to do it is to put the password in a hidden field and then access
that field if nothing is entered in the password box by the user.
Dave

> Hi,
>
[quoted text clipped - 11 lines]
> IMO it should be like that, otherwise a savvy user could do a right click,
> see code and see your password just there.
Jon Skeet [C# MVP] - 03 Mar 2008 15:27 GMT
> Then how do programmers handle initializing passwords for those who want
> their password remembered?

That should usually be handled on the client, by the browser itself.
Most browsers are able to store passwords in a safe way - unlike
having it in the page.

Personally I try to avoid the server needing to have the plaintext
password available in the first place, aside from during password
changes. Usually, only a hash should be available.

Jon

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.