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

6 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

Give your Valuable Comments

Other Related Posts

© 2010-2012 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.