How to disable IE/Firefox remember password ?

Some time we need to disable remember password option in Firefox/i.e. In that time just set autocomplete="off" for password text box.
If you set autocomplete="off", remember password option will not display.


[code]
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:TextBox ID="TextBox1" autocomplete="off" runat="server" TextMode="Password"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />

</div>

</form>
</body>
</html>


[/code]

No comments:

Post a Comment

Plz Share your comments...