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

bound password field is blank?

why is the password field blank in dot.net 2.0? and how can i get it to mask?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 5 '06 #1
3 1787
Text value cannot be set to server-side password fields from server-side.
One workaround is to use ASP style assignment for a password type input
element:

<input type="password" ID="pwd" name="pwd" value="<%= pwdValue %>" />

In code-behind:
protected string pwdValue = <data from the databae>;

HTH

"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:1F**********************************@microsof t.com...
why is the password field blank in dot.net 2.0? and how can i get it to
mask?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes

Aug 5 '06 #2
you can also use this style:

MyPasswordControl.Attributes["value"] = "some password"

you're using SSL on this page right?! :)

neil
Siva M wrote:
Text value cannot be set to server-side password fields from server-side.
One workaround is to use ASP style assignment for a password type input
element:

<input type="password" ID="pwd" name="pwd" value="<%= pwdValue %>" />

In code-behind:
protected string pwdValue = <data from the databae>;

HTH

"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:1F**********************************@microsof t.com...
why is the password field blank in dot.net 2.0? and how can i get it to
mask?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 5 '06 #3
Right, that's a technique too - missed it!

<ne**********@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
you can also use this style:

MyPasswordControl.Attributes["value"] = "some password"

you're using SSL on this page right?! :)

neil
Siva M wrote:
Text value cannot be set to server-side password fields from server-side.
One workaround is to use ASP style assignment for a password type input
element:

<input type="password" ID="pwd" name="pwd" value="<%= pwdValue %>" />

In code-behind:
protected string pwdValue = <data from the databae>;

HTH

"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:1F**********************************@microsof t.com...
why is the password field blank in dot.net 2.0? and how can i get it to
mask?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 6 '06 #4

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

Similar topics

1
by: Chris | last post by:
I'm new to Java (Just got a book on it 2 days ago and I am making my first application) I have a login page using Swing with a username and password field with the username field being TextField...
4
by: J Sahoo | last post by:
Hello, I have a registration page where I am collecting user information (username, password, last name, age, etc...). I made the password field as PASSWORD (field type from the textbox). If user...
0
by: Bob | last post by:
I have an Access date field bound to a text box. If I modify the text box to a different date value and update, it writes the modified value to the table. If I blank the date in the text box and...
2
by: Simple Java Drinker | last post by:
I decided to reinstall the Windows XP on my computer by using the Repair Option. After typing "R" as required I am requested to input an administrator password. The problem is that no administrator...
6
by: James | last post by:
Have a textbox that's in Password mode on a user creation page. Have several dropdowns that cause a PostBack out of necessity on this page. I cannot separate them. When one of these dropdowns...
1
by: Dave | last post by:
I'm working with SQL Server 2005 and VB.Net. I only want to store the date (not the time) in the DateTime field. I have a text field that is bound to a DateTime field in SQL. When I run the...
8
by: Katash | last post by:
Hello, I am new to PHP and am working on a login system for my site, currently supplied passwords are passed to MySQL and stored as md5 hashes, my question is :- seeing as md5 is 1 way only what...
1
by: dan.cawthorne | last post by:
Hi all, Need Some Help With A Simple Password Form What a I Have Is Single Field Table, With One Record In It The Field is Called table is also called "Password" which ive created a form...
0
by: Mike | last post by:
So here's the situation (.NET 2.0 btw): I have a form, and on this form is a textbox among many other databound controls. The textbox is bound to a field in a data table via the Text property. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.