By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,997 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,997 IT Pros & Developers. It's quick & easy.

set textbox text (textmode:password)

P: n/a
tom
Hello,

I have an asp.net web application where I want people
to register themselves.
This takes them through a few pages with prev/next
functionality.

In one of the pages they provide a password. I use a
textbox with textmode password for this.
But when I want to set the text of the textbox serverside
(in case they use 'previous' and go to the page where pwd
was asked), it shows up empty.

Anyone have an idea how to set the text of a password
mode textbox serverside?

thanx,
t
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Set a session variable to the textbox's value. Then when the page is
loaded, check if there is a value(obviously there won't be one the first
time the page is loaded so just ignore it) and use it.
"tom" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Hello,

I have an asp.net web application where I want people
to register themselves.
This takes them through a few pages with prev/next
functionality.

In one of the pages they provide a password. I use a
textbox with textmode password for this.
But when I want to set the text of the textbox serverside
(in case they use 'previous' and go to the page where pwd
was asked), it shows up empty.

Anyone have an idea how to set the text of a password
mode textbox serverside?

thanx,
t

Nov 22 '05 #2

P: n/a
tom
The problem is not getting the value of the password.
I have that already in my database. But when a user wants
to o back to the page where he already entered his
password I set the text of the textbox to the password
(because it's a mandatory field).
However, it seems that because it's in textmode password
that it won't take the text, it shows up empty.

-----Original Message-----
Set a session variable to the textbox's value. Then when the page isloaded, check if there is a value(obviously there won't be one the firsttime the page is loaded so just ignore it) and use it.
"tom" <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...
Hello,

I have an asp.net web application where I want people
to register themselves.
This takes them through a few pages with prev/next
functionality.

In one of the pages they provide a password. I use a
textbox with textmode password for this.
But when I want to set the text of the textbox serverside (in case they use 'previous' and go to the page where pwd was asked), it shows up empty.

Anyone have an idea how to set the text of a password
mode textbox serverside?

thanx,
t

.

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.