<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" AutoPostBack="true" runat="server"></asp:TextBox>
</div>
</form>
运行后一再输入框输入东西就跳出个JS错误窗口提示
行: 43
错误: 缺少对象
调试后
<input name="TextBox1" type="text" onchange="javascript:setTimeout('__doPostBack(\'TextBox1\',\'\')', 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;"
贴个完整代码出来看看..~`
按你的代码没有问题啊
TextBox.AutoPostBack 属性用法参考:http://msdn.microsoft.com/zh-cn/library/system.web.ui.webcontrols.textbox.autopostback%28v=VS.90%29.aspx