473,624 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password TextBox VeiwState Text

Why Password Textbox do not Save VeiwState doing Refreshing of page and how
do I accomplish this?
Nov 17 '05 #1
2 3904
You can't set the password field's value when sending a response to the
browser. This is due to security restrictions, it's read-only, and loses
its value when the page is sent back to the client (hence ASP.NET cannot
save it via viewstate). But most users use a password manager of their own,
which is a client feature out of your control, that is the only (safe) way
to do it. Another way would be to use Javascript, I believe someone said
you can do that, but of course you'd pry want to be using SSL then, as the
password would be in clear text. Plus that's not really the problem,
usually it's to compare the value to the user's actual password, so you
don't want it in the page then at all for them to 'view source' on....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
"Leon Shaw" <vn*****@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Why Password Textbox do not Save VeiwState doing Refreshing of page and how do I accomplish this?

Nov 17 '05 #2
I have a dropdownlist in my form (which is all cities after selecting a
state) that needs refreshing before submission. How do you use the password
manager client feature.
"Craig Deelsnyder" <cd******@NOSPA Myahoo.com> wrote in message
news:uO******** ******@TK2MSFTN GP10.phx.gbl...
You can't set the password field's value when sending a response to the
browser. This is due to security restrictions, it's read-only, and loses
its value when the page is sent back to the client (hence ASP.NET cannot
save it via viewstate). But most users use a password manager of their own, which is a client feature out of your control, that is the only (safe) way
to do it. Another way would be to use Javascript, I believe someone said
you can do that, but of course you'd pry want to be using SSL then, as the
password would be in clear text. Plus that's not really the problem,
usually it's to compare the value to the user's actual password, so you
don't want it in the page then at all for them to 'view source' on....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
"Leon Shaw" <vn*****@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Why Password Textbox do not Save VeiwState doing Refreshing of page and

how
do I accomplish this?


Nov 17 '05 #3

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

Similar topics

2
656
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 password. I use a textbox with textmode password for this. But when I want to set the text of the textbox serverside
4
2316
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 reader, to my password textbox, it´s empty. How can I get around this? /Marre
2
5266
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 the Database. There is a value in my datareader but yet on my
3
1440
by: Rajesh | last post by:
Hello all, I have a problem here. I have a procedure called FillForm() where I populate values for some hidden asp:textboxes. But after I do a postback, my values in the textboxes are lost and I see only "" values. Hope someone can help me with this. Thank you.
4
5769
by: Jonathan Dienst | last post by:
I have a simple data access and administration page for user details on my site, including a login password -- but I cannot get the textbox to work properly if the TextMode is set to "Password". The user details are modified in making a hidden table with textboxes visible -- in response an edit command from the datagrid. One of the textboxes is used for the user's password. If this textbox has the attribute TextMode="SingleLine" (ie...
2
1499
by: Raghavendra V | last post by:
Hi all, I have a datagrid and textboxes as columns. But when i say the textbox property as PASSWORD the * (stars) does not display in the password text box at runtime. But when it is a normal textbox the text gets displayed in the control. I will be happy if someone can answer this problem. Thanks in advance Raghavendra
6
2289
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have to type their credentials every time, this seems like a pretty common thing. However, when I try to populate the password HTML textbox from the cookie, the textbox remains blank. However, if I try this from an equivalent web control, the...
1
4217
by: jqheller | last post by:
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...
6
2401
by: SenthilVel | last post by:
hi all, i am running a ASP.Net 2.0 application. in one of the pages i have a text box which is set as PASSWORD mode. when the page is submitted or transfered , am not able to get the contents of this textbox which is in Password mode. do we need to any more apart from setting to password mode to get the value present in the text box..? do we need to do anything in specific with the viewstates if there is
0
8680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8625
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
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,...
0
8482
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5565
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();...
0
4082
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...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.