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

passwords and viewstate

I have an Add User page where I want to enter details such as password
in a text box with textmode set to 'password'. However, one of the
fields required to have data entered into it is a dropdown which
repopulates other dropdowns on the SelectedIndexChanged event. This
event has the effect of resetting the password textbox to empty. I have
tried putting the password into a ViewState object on the
SelectedIndexChanged event, but it still disappears some point between
this event and the page render.

What event do I need to use to put the value I have in my ViewState back
into my password text box?

*** Sent via Developersdex http://www.developersdex.com ***
Aug 30 '06 #1
2 1710
I have an Add User page where I want to enter details such as password
in a text box with textmode set to 'password'. However, one of the
fields required to have data entered into it is a dropdown which
repopulates other dropdowns on the SelectedIndexChanged event. This
event has the effect of resetting the password textbox to empty. I have
tried putting the password into a ViewState object on the
SelectedIndexChanged event, but it still disappears some point between
this event and the page render.

What event do I need to use to put the value I have in my ViewState back
into my password text box?

*** Sent via Developersdex http://www.developersdex.com ***
By design (for security reasons) the password-field "forgets" the value
that might be set.
You need to use client-side javascript if you want to set (keep) a
value there.

Hans Kesting
Aug 30 '06 #2
How to set text to a Password TextBox?
http://aspadvice.com/blogs/joteke/ar...2/03/2316.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Mike P" <mi*******@gmail.comwrote in message
news:eQ**************@TK2MSFTNGP03.phx.gbl...
>I have an Add User page where I want to enter details such as password
in a text box with textmode set to 'password'. However, one of the
fields required to have data entered into it is a dropdown which
repopulates other dropdowns on the SelectedIndexChanged event. This
event has the effect of resetting the password textbox to empty. I have
tried putting the password into a ViewState object on the
SelectedIndexChanged event, but it still disappears some point between
this event and the page render.

What event do I need to use to put the value I have in my ViewState back
into my password text box?

*** Sent via Developersdex http://www.developersdex.com ***

Aug 30 '06 #3

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

Similar topics

14
by: Miranda | last post by:
Hi, I have a ASP/vbscript program that generates random passwords. The problem is I need to insert those passwords into an Access database of 327 clients. I have the random password program...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
3
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
3
by: Elroyskimms | last post by:
I've posted this question a couple of times before, but everytime someone tries to help, it seems they completely misunderstand the problem I am having and offer a solution to a different problem....
6
by: hitendra15 | last post by:
Hi I have created web user control which has Repeater control and Linkbutton in ItemTemplate of repeater control, following is the code for this control On first load it runs fine but when...
19
by: Cord-Heinrich Pahlmann | last post by:
Hi, I have written a tool wich de/encrypts a few of my forum and bloggin-Passwords. My question is how secure it is. The following describes how I have encrypted my passwords. When I log in,...
2
by: Simon.Whiteside | last post by:
If someone has created a database for me and transferred it over is there any way that I can check I have full access to all areas? I am a beginner with Access and so the development has been...
12
by: Nick C | last post by:
Hi How can i reduce the viewstate for my asp.net application. It is getting very large now. What is a good solution? thanks N
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?
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
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,...
0
isladogs
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...

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.