Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Disable Firefox/IE Remember Password Prompt Option in Asp.net

Nov 24, 2012
Introduction
  
Here I will explain how to make or disable IE/firefox stop asking remember passwords in
asp.net.

Description:
  
In previous posts I explained
jQuery increase decrease font size of website, Redirect to another page after some time delay, Show alert message to upgrade browser, jQuery Tooltip and many articles relating to jQuery, Asp.net. Now I will explain how to make IE/Firefox stop asking remember passwords in asp.net.

To stop browsers asking remember password we need to set property autocomplete=off like this

<asp:TextBox ID="txtPwd" runat="server" TextMode="Password" autocomplete="off" />
If you want to see it in example check below code


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>How to make IE or firefox stop asking remember passwords in asp.net</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>UserName</td>
<td><asp:TextBox ID="txtName" runat="server"/></td>
</tr>
<tr>
<td>Password</td>
<td><asp:TextBox ID="txtPwd" runat="server" TextMode="Password" autocomplete="off" /></td>
</tr>
<tr>
<td></td>
<td><asp:Button ID="btnSubmit" runat="server" Text="Submit" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

14 comments :

Anonymous said...

Its not work For Google Chrome

Anonymous said...

this is not working at all for all browsers.my problem is , do not want to show popup "Do you want to save username and password?" like this .please help me
thanks

Bk The Best said...

AutoCompleteType=disabled and autoaomplete="off"

put these 2 attributes in your textboxes

Anonymous said...

Hi,
I have placed both attributes in username and password text boxes but still it is not working with any browser . so please help me ,
thanks very much for your response.
Thanks,
Sandeep Sharma

Anonymous said...

Hi Sandeep
You can try this link.
http://stackoverflow.com/questions/24237449/remove-saved-usernames-and-passwords-of-browser-from-web-application

Anonymous said...

with this comments
http://stackoverflow.com/a/24244922/2358181

Anonymous said...

1

SadikAli said...

not working...

Anonymous said...

hi,

it's not working on latest browser u have any another code.
please suggest.

kiransolkar said...

This Code Works
div style="display: none"
input type="password" /Div

Unknown said...

added autocomplete="off" AutoCompleteType="Disabled"
but not working at all...

Unknown said...

I tried autocomplete="off" and autocompletetype="Disabled" still it is not working.Kindly need a help.

Thanks and Regards.

Unknown said...

does anyone got the solution as autocomplete dosent work ...plz help?

Saleem Usmani said...

I am also use this code but not working in Chrome Browser.

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.