This question already has answers here:
How do you disable browser Autocomplete on web form field / input tag?
                                
                                    (71个答案)
                                
                        
                        
                            “Autocomplete off” not working in IE - ASP.Net
                                
                                    (4个答案)
                                
                        
                                5年前关闭。
            
                    
我希望我的文本框不建议以前输入的旧值(单击时)。

最佳答案

您可以将html元素中的autocomplete属性设置为false

<asp:TextBox ID="TextBox1" autocomplete="false" runat="server"></asp:TextBox>


您也可以在整个表单中执行此操作:

<form id="myForm" autocomplete="off" method="post" runat="server">

关于c# - ASP.Net文本框不应建议旧值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19947786/

10-08 21:50