Solution : 1
<asp:TextBox Runat="server" ID="txtUserName" placeholder="Enter User Name" autocomplete="off"></asp:TextBox>
Solution : 2
< script src = "Scripts/jquery-1.6.4.min.js" > < /script> < script type = "text/javascript" >
$(document).ready(function()
{
$("#<%=txtUserName.ClientId %>").attr('autocomplete', 'off');
});
//document.getElementById("<%=txtUserName.ClientID %>").autocomplete = "off" ;
< /script>
<asp:TextBox Runat="server" ID="txtUserName" placeholder="Enter User Name"></asp:TextBox>
Solution : 3
Asp design page
<asp:TextBox Runat="server" ID="txtUserName" placeholder="Enter User Name"></asp:TextBox>
C# Class file
-----------------
protected void Page_Load(object sender, EventArgs e)
{
txtUserName.Attributes.Add("autocomplete", "off");
}
<asp:TextBox Runat="server" ID="txtUserName" placeholder="Enter User Name" autocomplete="off"></asp:TextBox>
Solution : 2
< script src = "Scripts/jquery-1.6.4.min.js" > < /script> < script type = "text/javascript" >
$(document).ready(function()
{
$("#<%=txtUserName.ClientId %>").attr('autocomplete', 'off');
});
//document.getElementById("<%=txtUserName.ClientID %>").autocomplete = "off" ;
< /script>
<asp:TextBox Runat="server" ID="txtUserName" placeholder="Enter User Name"></asp:TextBox>
Solution : 3
Asp design page
<asp:TextBox Runat="server" ID="txtUserName" placeholder="Enter User Name"></asp:TextBox>
C# Class file
-----------------
protected void Page_Load(object sender, EventArgs e)
{
txtUserName.Attributes.Add("autocomplete", "off");
}
No comments:
Post a Comment