473,320 Members | 1,802 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.

password text box

Dan
When I try to read the text in a password text box, I get an empty
string........

code behind...

MyPassword = PasswordTextBox.Text always returns an empty string.....

What am I missing? Thanks.
Nov 21 '05 #1
6 3166
I added a normal textbox (TextBox1) to a form & changed the password
character to an asterix.

I then used:

MessageBox.Show(TextBox1.Text)

This returned 'TextBox1' which is the default text, which I left as default

Although, if you want to uncover the password under the asterix's then
that's very easy too

I hope this has helped
Nov 21 '05 #2
That is crazy... I will be testing this.
in asp.net the line of code you have works fine
"Dan" <da*@dsully.com> wrote in message
news:OW**************@TK2MSFTNGP10.phx.gbl...
When I try to read the text in a password text box, I get an empty
string........

code behind...

MyPassword = PasswordTextBox.Text always returns an empty string.....

What am I missing? Thanks.

Nov 21 '05 #3
"Dan" <da*@dsully.com> schrieb:
When I try to read the text in a password text box, I get an empty
string........

code behind...

MyPassword = PasswordTextBox.Text always returns an empty string.....


Web application or Windows Forms application?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
Dan
Web application.....What I want to do is read the password at the
server.......
Thanks, Dan

---------------------------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eI**************@TK2MSFTNGP15.phx.gbl...
"Dan" <da*@dsully.com> schrieb:
When I try to read the text in a password text box, I get an empty
string........

code behind...

MyPassword = PasswordTextBox.Text always returns an empty string.....


Web application or Windows Forms application?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5
Dan
I do want to uncover the actual password under the asterix at the server.

Did you also change the textbox TextMode to Password?

Thanks....Dan
-----------------------------------------------
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
I added a normal textbox (TextBox1) to a form & changed the password
character to an asterix.

I then used:

MessageBox.Show(TextBox1.Text)

This returned 'TextBox1' which is the default text, which I left as
default

Although, if you want to uncover the password under the asterix's then
that's very easy too

I hope this has helped

Nov 21 '05 #6
Dan
Don't know where you put the Mesageboxshow code. When I place it in the code
behind in the Click event for the submit button, I get a "Messageboxshow is
not declared" error.

------------------------------------
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
I added a normal textbox (TextBox1) to a form & changed the password
character to an asterix.

I then used:

MessageBox.Show(TextBox1.Text)

This returned 'TextBox1' which is the default text, which I left as
default

Although, if you want to uncover the password under the asterix's then
that's very easy too

I hope this has helped

Nov 21 '05 #7

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

Similar topics

7
by: Mike | last post by:
I've been trying for the past week to put a simple code together. I have done a LOT of searching, found scripts showing the functions I would like to use, however when I mix them it all goes wrong,...
0
by: Doug Bell | last post by:
Hi I am having difficulty getting a password form to work correctly. I am using VB.Net. The required functionality is to allow a change to a setting but when a save button is clicked a password...
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...
5
by: scorpion53061 | last post by:
is it possible to set the database password that you can set in access for a database from a vb.net application?
2
by: yasinirshad | last post by:
Hi, Please see my below code to change password. Here i need to check for old password from database and need to update new password. But when i try to submit by giving wrong old password ,its...
6
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...
2
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears...
1
by: pawan123 | last post by:
Hi, I am using VB6 and SQL Server 2000. I want to design a logon form. In this form, how can I use a Password field to store in encrypted form in tbluser table and how can I compare password...
2
by: whitey | last post by:
Can anybody supply me with a script the does what is in the title above please? I have tried so many different methods! here is what im currently trying to get to work SIGN IN <!doctype...
5
by: ahilar12 | last post by:
hi all, i wanted to check whether the password entered matches with the confirm password.either through javascript or through php.i have enclosed my code somebody help on this <html> ...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.