Folks I am losing my mind trying to work with the
TemplatedWizard Step. 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
TemplatedWizard Step passwordStep = SelectPasswordS tep;
// password step
TextBox PasswordChoice =
(TextBox)passwo rdStep.ContentT emplateContaine r.FindControl(" 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
templatedwizard step? 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 1 4217
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******** *************@e 51g2000hsg.goog legroups.com...
Folks I am losing my mind trying to work with the
TemplatedWizard Step. 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
TemplatedWizard Step passwordStep = SelectPasswordS tep;
// password step
TextBox PasswordChoice =
(TextBox)passwo rdStep.ContentT emplateContaine r.FindControl(" 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
templatedwizard step? 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
Question #1: In the Add button Command Event I am trying to access the
Text value of the TextBox in the other Footer columns. However, inside
the Event, the TextBox.Text values are all empty strings, even if they
had data typed into them. Is this a...
|
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 saving the record.. How can
I retain what the user has entered in the password field even on postback?
And why does it only happen to the password field; all other fields are
retained.
|
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 placeholder, I have placed a Login control (Login1) and a
ValidationSummary control.
I have set the ValidationSummary's ValidationGroup property equal to
"Login1".
|
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 control, I am setting the textbox value
that is inside the user control. When I click the button that is inside the
user control and try to access the textbox value it is getting empty string
instead of the value set in the Page_Load. I have tried...
|
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;
myTextBox.ID = "parameterTextBox"+Convert.ToInt16(i);
| |
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
controls on the form are bound to the EmployeesBindingSource. Except for the
password ...
I set up separate handlers for the Password and bind this control manually
when I New() the form:
Private Sub BindPasswordControl()
|
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 display the results in a label when the user clicks a button.
I am using VB.
Here is an example of what I'm trying to do:
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
|
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 scope. Application variables are then accessed in this manner Request.App.<Var>.
To begin with I had a simple functioning login system inside a subdirectory named admin, this subdirectory had it's own application.cfm, I wasn't sure whether to duplicate...
|
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 when iam using a normal web page... but can't in content page....
Code in Master Page
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="submaster.master.cs" Inherits="submaster" %>
<%@ Register Assembly="AjaxControlToolkit"...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |