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

how to mask an input

niv
Hello,

I have a textbox that users enter their password into..
the problem is that i want the password to be masked with
a asterisk.

How can I do this and also still be able to read the input
like so.

string x;
x = TextBox1.Text;

I dont want x to have asterisks..
Thanks in advance ;)

niv
Nov 19 '05 #1
3 2972
Hi niv,

You are going to love this! In your <asp:textbox> tag put this:

TextMode="Password"

For example:

<asp:textbox id="txtPassword" Runat="server"
TextMode="Password"></asp:textbox>

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"niv" <ni*@hotmail.com> wrote in message
news:04****************************@phx.gbl...
Hello,

I have a textbox that users enter their password into..
the problem is that i want the password to be masked with
a asterisk.

How can I do this and also still be able to read the input
like so.

string x;
x = TextBox1.Text;

I dont want x to have asterisks..
Thanks in advance ;)

niv

Nov 19 '05 #2
Simply change the TextMode property of the TextBox to Password.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"niv" <ni*@hotmail.com> wrote in message
news:04****************************@phx.gbl...
Hello,

I have a textbox that users enter their password into..
the problem is that i want the password to be masked with
a asterisk.

How can I do this and also still be able to read the input
like so.

string x;
x = TextBox1.Text;

I dont want x to have asterisks..
Thanks in advance ;)

niv

Nov 19 '05 #3
niv
Yess!!!
I love that.

Thanks KEN!
-----Original Message-----
Hi niv,

You are going to love this! In your <asp:textbox> tag put this:
TextMode="Password"

For example:

<asp:textbox id="txtPassword" Runat="server"
TextMode="Password"></asp:textbox>

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"niv" <ni*@hotmail.com> wrote in message
news:04****************************@phx.gbl...
Hello,

I have a textbox that users enter their password into..
the problem is that i want the password to be masked with a asterisk.

How can I do this and also still be able to read the input like so.

string x;
x = TextBox1.Text;

I dont want x to have asterisks..
Thanks in advance ;)

niv

.

Nov 19 '05 #4

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

Similar topics

6
by: dude | last post by:
hello how would i make an input mask that only makes the first letter a capitol one? i've been playing around and testing various masks, also tried the wizard, but i've had no luck. could...
2
by: Francis Debrabandere | last post by:
Hi all, I'm a beginner in ms access, and I'm working on my first real application. But to finish it up I'm facing a problem. I'm not able to solve and maybe someone can help me. I have made a...
2
by: Ellen Manning | last post by:
I've got an A2K database with a link to a table in another A2K database. This linked table contains SSN formatted with the SSN input mask. I'm trying to use a dlookup using this linked table. ...
9
by: Paul | last post by:
hi, is there an input mask i could use on a report to do the following: (1) if i enter "THISISATEST" on my form, i want the text box on my report to display: "T H I S I S A T E S T". (2) if...
2
by: johnp | last post by:
Hi, Our Tech department updated users to Office 2003 this week. Now the input mask in one of the applications is showing up as: (###) ###-### The input mask wizard works correctly when I...
7
by: F. Michael Miller | last post by:
I have a db with Access front end, sql back, linked tables. I need to be able to change input masks at the table level in code. Any ideas? Thanks!
3
by: AA Arens | last post by:
When I want the first character of a field to be Uppercased, I need to make an input mask, like >L< followed by ??????? for example. But this mask creates ____ in an unfilled field, which I don't...
9
by: msnews.microsoft.com | last post by:
Hello. How can I set input mask for TextBox? Or can I use for mask input some other control?
7
desklamp
by: desklamp | last post by:
I'm a total Access newbie, please bear with me! Using Win2K/Access 2003. I'm trying to create a table in which I can store IP addresses and other information. According to Microsoft, there is no...
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:
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
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...
1
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...
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.