I have a user details form with a textbox for a password on it
(textmode=password). I want to be able to set the text in the textbox
when retrieving user details. I will be filling the box with a dummy
value such as '*****'. When I set the .text property and the form is
run it returns as an empty value.
Is there any way around this.
Thanks."Ian Walsh" <ianwalsh@.hbosplc.com> wrote in message
news:6518cd3d.0308220525.6323427a@.posting.google.c om...
> I have a user details form with a textbox for a password on it
> (textmode=password). I want to be able to set the text in the textbox
> when retrieving user details. I will be filling the box with a dummy
> value such as '*****'. When I set the .text property and the form is
> run it returns as an empty value.
No. This is prohibited for security reasons.
--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com
Does it mean that I can do "View Source" and read password?
"Steve C. Orr, MCSD" <Steve@.Orr.net> wrote in message
news:eyDuTjNaDHA.1580@.tk2msftngp13.phx.gbl...
> John is right that this is prohibited because of security reasons.
> However there is a workaround. You must set the password text via client
> side script.
> Here's the simplest example I've seen:
> MyPWTextBox.Attributes.Add("value", "PassWord")
> This server side code outputs the needed client side code
> --
> I hope this helps,
> Steve C. Orr, MCSD
> http://Steve.Orr.net
> Hire top-notch developers at http://www.able-consulting.com
>
> "Ian Walsh" <ianwalsh@.hbosplc.com> wrote in message
> news:6518cd3d.0308220525.6323427a@.posting.google.c om...
> > I have a user details form with a textbox for a password on it
> > (textmode=password). I want to be able to set the text in the textbox
> > when retrieving user details. I will be filling the box with a dummy
> > value such as '*****'. When I set the .text property and the form is
> > run it returns as an empty value.
> > Is there any way around this.
> > Thanks.
Yup. If it's populated in the browser, and the HTML is plain text, well...
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.
"Ivan Demkovitch" <i@.d> wrote in message
news:OgK0aoNaDHA.2520@.TK2MSFTNGP09.phx.gbl...
> Does it mean that I can do "View Source" and read password?
>
> "Steve C. Orr, MCSD" <Steve@.Orr.net> wrote in message
> news:eyDuTjNaDHA.1580@.tk2msftngp13.phx.gbl...
> > John is right that this is prohibited because of security reasons.
> > However there is a workaround. You must set the password text via
client
> > side script.
> > Here's the simplest example I've seen:
> > MyPWTextBox.Attributes.Add("value", "PassWord")
> > This server side code outputs the needed client side code
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > http://Steve.Orr.net
> > Hire top-notch developers at http://www.able-consulting.com
> > "Ian Walsh" <ianwalsh@.hbosplc.com> wrote in message
> > news:6518cd3d.0308220525.6323427a@.posting.google.c om...
> > > I have a user details form with a textbox for a password on it
> > > (textmode=password). I want to be able to set the text in the textbox
> > > when retrieving user details. I will be filling the box with a dummy
> > > value such as '*****'. When I set the .text property and the form is
> > > run it returns as an empty value.
> > > > Is there any way around this.
> > > > Thanks.
Yes it does. That's why you've had this problem in the first place because
this kind of thing is a bad idea from a security standpoint so the default
security settings discourage it.
--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Ivan Demkovitch" <i@.d> wrote in message
news:OgK0aoNaDHA.2520@.TK2MSFTNGP09.phx.gbl...
> Does it mean that I can do "View Source" and read password?
>
> "Steve C. Orr, MCSD" <Steve@.Orr.net> wrote in message
> news:eyDuTjNaDHA.1580@.tk2msftngp13.phx.gbl...
> > John is right that this is prohibited because of security reasons.
> > However there is a workaround. You must set the password text via
client
> > side script.
> > Here's the simplest example I've seen:
> > MyPWTextBox.Attributes.Add("value", "PassWord")
> > This server side code outputs the needed client side code
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > http://Steve.Orr.net
> > Hire top-notch developers at http://www.able-consulting.com
> > "Ian Walsh" <ianwalsh@.hbosplc.com> wrote in message
> > news:6518cd3d.0308220525.6323427a@.posting.google.c om...
> > > I have a user details form with a textbox for a password on it
> > > (textmode=password). I want to be able to set the text in the textbox
> > > when retrieving user details. I will be filling the box with a dummy
> > > value such as '*****'. When I set the .text property and the form is
> > > run it returns as an empty value.
> > > > Is there any way around this.
> > > > Thanks.
Tuesday, March 13, 2012
Setting the text of a password box
Labels:
asp,
box,
details,
form,
net,
password,
retrieving,
setting,
text,
textbox,
textboxwhen,
textmodepassword,
user
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment