473,396 Members | 1,859 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,396 software developers and data experts.

losing content of password TextBox control inside of a TemplatedWizardStep

Folks I am losing my mind trying to work with the
TemplatedWizardStep. I have created a multistep user registration
form that collects plenty of user information including a password.
At the end of the process I am finding that the value of my password
control is blank. When I set the textmode of my textbox to
singleline, the value is preserved. It is just when the textbox is
set to password that I lose the value.
I am casting to the password box in the following way:

// make reference to the password step
TemplatedWizardStep passwordStep = SelectPasswordStep;

// password step
TextBox PasswordChoice =

(TextBox)passwordStep.ContentTemplateContainer.Fin dControl("Password");

Response.Write(PasswordChoice.Text);

This is the same way that I cast to the other controls and I have no
issues. I understand that I can't reset the value of the password
textbox, but that isn't what I'm trying to do. I just need to be able
to read it at the end of my process to create the user's account.

I have been at this for most of the week now. Is it just not possible
to keep the value of a password textbox inside of a
templatedwizardstep? I can't be the first person to use these
controls for the purpose of creating a user account..

Any help would be appreciated.

Thanks,
JQ

May 11 '07 #1
1 4198
Hi,

I think it relates to that, that in password mode, TextBox doesn't restore
the value from posted data. That is, if you have more than one postback
between setting the password and reading it, it contains nothing. You need
to read the pwd on the next postback (or store it immediately to session or
something on the subsequent postback)

But note that password TextBox's value can be set or you can create custom
pwd control to hold the value over multiple postbacks:
http://aspadvice.com/blogs/joteke/ar...Box_3F00_.aspx

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"jqheller" <jh*****@gmail.comwrote in message
news:11*********************@e51g2000hsg.googlegro ups.com...
Folks I am losing my mind trying to work with the
TemplatedWizardStep. I have created a multistep user registration
form that collects plenty of user information including a password.
At the end of the process I am finding that the value of my password
control is blank. When I set the textmode of my textbox to
singleline, the value is preserved. It is just when the textbox is
set to password that I lose the value.
I am casting to the password box in the following way:

// make reference to the password step
TemplatedWizardStep passwordStep = SelectPasswordStep;

// password step
TextBox PasswordChoice =

(TextBox)passwordStep.ContentTemplateContainer.Fin dControl("Password");

Response.Write(PasswordChoice.Text);

This is the same way that I cast to the other controls and I have no
issues. I understand that I can't reset the value of the password
textbox, but that isn't what I'm trying to do. I just need to be able
to read it at the end of my process to create the user's account.

I have been at this for most of the week now. Is it just not possible
to keep the value of a password textbox inside of a
templatedwizardstep? I can't be the first person to use these
controls for the purpose of creating a user account..

Any help would be appreciated.

Thanks,
JQ
May 11 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jason | last post by:
Hello everyone. I am trying to write some custom command events into a DataGrid. The command that is currently giving me trouble is an "Add" custom command in the footer of a template column. ...
6
by: et | last post by:
In a procedure where a user creates a password, among other things, the password textbox returns to blank whenever a user selects other fields that cause a postback, even though they are not done...
3
by: ilockett | last post by:
The background: I have a web app with a simple master page that contains just one content placeholder. I have created a web form that then uses this master page. Within the content...
2
by: Sridhar | last post by:
Hi, I have a user control which has a textbox control and a button. I have created a property to get and set the text box value. In the Page_Load method of the Page that contains the user...
5
by: tarscher | last post by:
Hi all, I create a set of text-boxes based on user input: for (int i = 0; i < Convert.ToInt16(keywordsDropDownList.Text); i++) { myTextBox = new TextBox(); myTextBox.Columns = 5;...
2
by: Earl | last post by:
I'm adding password encryption to the Employees form. I have a strongly-typed dataset being used as the datasource for the EmployeesBindingSource, and the Employees table set as the datamember. All...
1
by: JTok | last post by:
I have an asp.net website I am designing using VS2005 standard. It is installed on Win2K3 Enterprise. In a Wizard Control, I want to take user input from two textboxes, add them together, and then...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.