473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

set textbox text (textmode:password)

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
2 2790
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tom | last post by:
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...
4
by: MA | last post by:
Hi all! I have a problem here. I have a web page for user administration. On this page I have a textbox for password. This textbox are in TextMode password. But when I get data, via a data...
1
by: Alex | last post by:
I can't seem to programatically assign a textBox server control when TextMode=Password, why is this?
0
by: Kumar | last post by:
Hello All, I am trying the following in one of the DataGrid column. The intent is to enable users to edit their password without actually displaying it. <asp:TextBox id='Password'...
2
by: Kerri | last post by:
Hi, I have an asp textbox that allows users to enter their password. I have another page that allows a user to edit their user account. On this page I set the text to be the password in...
1
by: feng | last post by:
I would like to use asp web form's TextBox control for my password field but I don't know how to do this. I know I can use HTML textbox and then set the type="password". In asp TextBox, however,...
0
by: Scott | last post by:
I have a textbox to enter an email address followed by a password textbox. The email has a regularexpressionvalidator and a requiredfieldvalidator. The ReqField works fine, but if I put in an...
4
by: Grey | last post by:
how can I persist the data input in the textbox which the Textmode = Password after postback?? I found that when I set the Textmode in textbox to PASSWORD, i cannot persist the data within the...
4
by: David Kyle | last post by:
Hello there, I'm having some problems setting the TextBox.Text Property in my code and having it returned to the client in the source when the TextBox.TextMode="Password". I know this is...
1
by: Nathan Sokalski | last post by:
I have a form that is being used to edit account information. The form contains username and password TextBoxes, for which I set Enabled=False. When I assign the Text property the previous value,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.