vb.net - 显示过去条目的文本框

标签 vb.net textbox visual-web-developer-2010

我无法使用页面后面的 aspx.vb 使文本框过去的条目消失(可以在 aspx 页面上执行此操作)下面的示例

Example

我都尝试过

        txt.AutoCompleteType = AutoCompleteType.Disabled
        txt.ViewStateMode = UI.ViewStateMode.Disabled

最佳答案

向文本框添加 autocomplete="off"属性

<asp:TextBox Runat="server" ID="Textbox1" autocomplete="off"></asp:TextBox>

或添加到 from 标记

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

使用后台代码

Textbox1.Attributes.Add("autocomplete", "off");

关于vb.net - 显示过去条目的文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13780942/

相关文章:

vb.net - 你如何在 VB .NET 中将 Double 向下舍入到最接近的整数?

vb.net - VB.NET ArrayList到List(Of T)类型的复制/转换

c# - 从动态文本框获取值 ASP.NET

python - 仅当在文本框中时,如何将 Enterkey <Return> 绑定(bind)到按钮?

asp.net - 如何复制网站中的文件夹?

html - 滚动条在 CollapsiblePanelExtender 中始终可见

asp.net-mvc - MVC3 应用程序 - 获取 "Could not load file or assembly ' System.Data.SQLite' 或其依赖项之一。”

mysql - 如何使用vb.net将数据保存到mysql数据库

vb.net - 调用 Public Sub 在某些地方有效,但在其他地方则无效。 VB.net 2010

C#:从文本框转换(识别)数学公式