I'm using ASP.NET 2008 to create an web application with login page "Login.aspx". In that I've use control. Inside that I've created a table structure to place the controls and in that I've place username and password textboxes.
<asp:Login ID="LoginUser" LoginButtonStyle-CssClass="CommonButton" runat="server"
OnLoggedIn="LoginUser_LoggedIn" OnLoginError="LoginUser_Error" TitleText=""
Width="100%" DisplayRememberMe="true" OnLoggingIn="LoginUser_LoggingIn">
<div style="margin-left: auto; margin-right: auto;">
<table border="0" cellpadding="0" style="margin-left: auto; margin-right: auto;">
<tr>
<td style="padding-bottom: 8px;">
<asp:TextBox ID="UserName" runat="server" autocomplete="off" CssClass="CommonTextBox" Width="325" TextMode="SingleLine"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="Password" runat="server" autocomplete="off" CssClass="CommonTextBox" Width="325" TextMode="Password"></asp:TextBox>
</td>
</tr>
</table>
</div>
</asp:Login>
Now when I enter username and password, the browser prompts for save password. But I don't need that prompt.
I'm not using any HTML controls. Its all ASP.NET controls.
How to prevent browser from prompt..?
I've used everything that was already answered. But nothing worked for me. That's why Ive asked newly. I searched for many possible ways, and all failed. This is not a duplicate one.