Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > password field can't be preloaded

Reply
Thread Tools

password field can't be preloaded

 
 
Homa
Guest
Posts: n/a
 
      10-21-2003
Hi,

I have a quick question.

I have a webpage allow user to modify his/her information. When I
generate the form, I want to pre-load the information to the
TextBoxes. But for the password (and confirm password) textbox, the
text can't be loaded (the TextBoxes are empty, no "dot" in them). I
checked inside Page_Load the text is loaded, but when the page is
render, the data is flushed.

I read some ASP code that in ASP this won't happen, you just do:

<input type="password" name="vcPassword" value="<%=vcPassword%>">


Please Help

Homa Wong
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      10-21-2003
You're not supposed to set the text of a password field from the server
because it's unsecure. That's why it didn't show up; it's prevented as a
security precaution. (The password would be plain text to anybody who views
the source of the page.)

However there is a workaround if you are willing to accept this risk.
Here's the simplest example I've seen:

MyPWTextBox.Attributes.Add("value", strPassWord)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



"Homa" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi,
>
> I have a quick question.
>
> I have a webpage allow user to modify his/her information. When I
> generate the form, I want to pre-load the information to the
> TextBoxes. But for the password (and confirm password) textbox, the
> text can't be loaded (the TextBoxes are empty, no "dot" in them). I
> checked inside Page_Load the text is loaded, but when the page is
> render, the data is flushed.
>
> I read some ASP code that in ASP this won't happen, you just do:
>
> <input type="password" name="vcPassword" value="<%=vcPassword%>">
>
>
> Please Help
>
> Homa Wong



 
Reply With Quote
 
 
 
 
Jerry III
Guest
Posts: n/a
 
      10-21-2003
It's a security issue. If you want your applications to be secure you should
only store hashed password values so you will never be able to know the
original password. And in any case you should not be sending passwords to
anybody, not even the original user.

Jerry

"Homa" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi,
>
> I have a quick question.
>
> I have a webpage allow user to modify his/her information. When I
> generate the form, I want to pre-load the information to the
> TextBoxes. But for the password (and confirm password) textbox, the
> text can't be loaded (the TextBoxes are empty, no "dot" in them). I
> checked inside Page_Load the text is loaded, but when the page is
> render, the data is flushed.
>
> I read some ASP code that in ASP this won't happen, you just do:
>
> <input type="password" name="vcPassword" value="<%=vcPassword%>">
>
>
> Please Help
>
> Homa Wong



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Insert Preloaded Background Image into TR, TD in IE vunet.us@gmail.com Javascript 3 05-08-2007 02:08 PM
How can I disable HP preloaded datamining? warf Computer Security 13 12-15-2006 06:08 PM
My preloaded images are not preloaded anymore when ... marc557@juno.com Javascript 1 11-25-2006 05:36 AM
Deleting a preloaded image from memory ivan.leben@gmail.com Javascript 62 05-26-2006 10:17 PM
Preloaded XP and Explorer problem. Andrew Computer Support 7 12-19-2004 08:29 PM



Advertisments