Password field

F

fiefie.niles

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?
When I use the Textbox Field (from Toolbox - Standard), I did not find
anything there that can make it a password field.
When I use the Input (Password) Field (From Toolbox - HTML), in my
Submit command button when I do Request.Form("txtPassword") or
Request.QueryString("txtPassword") it returns nothing.

This is from Page1.aspx
<input id="txtPassword" type="password" />

This is from Page1.aspx.vb:
Protected Sub cmdSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdSubmit.Click
sPassword = Request.Form("txtPassword") --> nothing

Thank you.
 
M

Mark Rae

In ASP.Net I would like to create a text box that is a Password Field.
How do I do that ?

<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />
 
F

fiefie.niles

When I click on the hyperlink you wrote
it says "Page not found".
Can you please retype the link ? Thank you very much.
 
J

Juan T. Llibre

You can only click on that hyperlink from a newsreader, not from a browser.

Notice the protocol
 
J

Juan T. Llibre

See my earlier reply, MArk.

He means the protocol hyperlink which is quoted
in your reply because you used a newsreader to reply to him.

He's using a browser...and the protocol doesn't work in browsers
unless it also has the double slashes and the server's address.
 
M

Mark Rae

See my earlier reply, MArk.

He means the protocol hyperlink which is quoted
in your reply because you used a newsreader to reply to him.

He's using a browser...and the protocol doesn't work in browsers
unless it also has the double slashes and the server's address.

Ah right...
 
F

fiefie.niles

Oh, I see your reply. I got it. Sorry about the confusion.
That works !
Thanks a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,838
Latest member
KandiceChi

Latest Threads

Top