"Do you want Windows to remember this password" - no!

A

Adrian Parker

In asp.net, is there any way of stopping the browser from outputting the
message..

"Do you want Windows to remember this password, so that you don't have to
type it again the next time you visit this page"

The customer doesn't want their users remembering their password as it's
confidential data they're viewing, so don't want them to even have the
choice. Is there something we can add to the pages to stop it asking ?
 
M

Marina Levit [MVP]

Yes, you can add the "autocomplete" attribute with the value "off".

If you have a server side textbox for the password field, you can do
something like:

passwordTextBox.Attributes.Add("autocomplete","off")
 
A

Adrian Parker

Thanks Marina, found another way of doing it globally..

<form id="Form1" method="post" runat="server" autocomplete="off">

any problem with this ?

| Yes, you can add the "autocomplete" attribute with the value "off".
|
| If you have a server side textbox for the password field, you can do
| something like:
|
| passwordTextBox.Attributes.Add("autocomplete","off")
|
| | > In asp.net, is there any way of stopping the browser from outputting the
| > message..
| >
| > "Do you want Windows to remember this password, so that you don't have
to
| > type it again the next time you visit this page"
| >
| > The customer doesn't want their users remembering their password as it's
| > confidential data they're viewing, so don't want them to even have the
| > choice. Is there something we can add to the pages to stop it asking ?
| >
| > --
| > Adrian Parker
| > Ingenuity At Work Ltd
| >
| >
|
|
 
M

Marina Levit [MVP]

Oh, don't know, never tried it. It very well may work, I just knew of the
input control level attribute.
 
S

Steven Cheng[MSFT]

Thanks for Marina's suggestion.

Hi Adrian,

yes, you can surely apply the "autocomplete attribute on a html <form>
element if you do not want any input field in an html <form> to utilize
autocomplete feature. Here is the msdn reference which detailed descrbie
this:

#Using AutoComplete in HTML Forms
http://msdn.microsoft.com/workshop/author/forms/autocomplete_ovr.asp?frame=t
rue

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



This posting is provided "AS IS" with no warranties, and confers no rights.
 

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,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top