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

Webform: Password Textbox Server Control

Hi all:

Through a Session variable, I am populating among other things the password
field in a user's profile page (the Webform);

this.TextBoxConfirmPassword.Text = Convert.ToString(Session["sPassword"]);
The odd thing is, when you view the Webform, the password (if even it were
masked) does not indicate visually that the control has been populated. My
TextBox is a server control of type Password.

Can you populate the value of a Password TextBox? Or can it only be entered
manually?

Chris

Nov 16 '05 #1
1 2140
SP
"Chris Scragg" <di**************@yahoo.com> wrote in message
news:10*************@news.supernews.com...
Hi all:

Through a Session variable, I am populating among other things the
password field in a user's profile page (the Webform);

this.TextBoxConfirmPassword.Text = Convert.ToString(Session["sPassword"]);
The odd thing is, when you view the Webform, the password (if even it were
masked) does not indicate visually that the control has been populated.
My TextBox is a server control of type Password.

Can you populate the value of a Password TextBox? Or can it only be
entered manually?

No , for security reasons you cannot. View/Source in your browser would show
the password in plain text. I have seen it populated via javascript but
again it was in plain text.

SP
Nov 16 '05 #2

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

Similar topics

3
by: trint | last post by:
Ok, I have tried to do this with the System.Web.UI and can't find anything for the webform. It seems much easier for a Winform. Any help in trapping Webform keydown event and keyup event is...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
9
by: Peter Afonin | last post by:
Hello: I need to clear all textboxes on the webform after the data has been submitted. How can I do this in one step? I found a C# code: // get a reference to your form control Control frm...
2
by: Greg Linwood | last post by:
In plain old html forms, there was a type="password" attribute which provided password behaviour to the <input> element. I'm building a WebForm in VS2003 & was expecting to find such a control...
0
by: Nagalinga Reddy | last post by:
Hi, Good morning. Iam currently working on a J2EE to .NET migration project where i have to implement the java technologies that are used in the application to the equivalent .NET technologies. I...
2
by: mg | last post by:
What code (javascript) will cause a WebForm to be submited (runatserver) whenever a new character is typed into a TextBox from the keyboard?
6
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...
4
by: Jozef | last post by:
Hello, I'm doing the lessons out of a Sams ASP.net book and have copied the following verbatim, out of the book (without the beginning and ending quotes); "'<%@ Page Language="vb"%>...
1
by: wapsiii | last post by:
My server control TextBoxPlus inherits from TextBox: Public Class TextBoxPlus Inherits System.Web.UI.WebControls.TextBox When I drag the control to a webform the control looks like a label? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.