Prevent textbox autofill with previously entered values

后端 未结 8 1036
轮回少年
轮回少年 2020-11-29 11:10

I have an asp page with some Textbox controls on it.

By default, the browser will suggest previously entered values for each box.

I\'d like to prevent that b

相关标签:
8条回答
  • 2020-11-29 11:42

    Autocomplete need to set off from textbox

    <asp:TextBox ID="TextBox1" runat="server" autocomplete="off"></asp:TextBox>
    
    0 讨论(0)
  • 2020-11-29 11:44

    Trying from the CodeBehind:

    Textbox1.Attributes.Add("autocomplete", "off");
    
    0 讨论(0)
提交回复
热议问题