/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{    
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);
this.TextBox1.TextChanged +=new EventHandler(TextBox1_TextChanged);
}

解决方案 »

  1.   

    <asp:textbox runat="server" onTextChanged="TextBox1_TextChanged"/>
      

  2.   

    比较倾向 Eddie005(暴走005) 的意见
      

  3.   

    InitializeComponent()  中存在这个事件
    InitializeComponent()  
    {
       this.TextBox1.TextChanged  +=new  EventHandler(TextBox1_TextChanged);  
    }------------
      

  4.   

    note:
      TextBox1是在一个用户控件中
    好像 TextBox1 直接在Page.aspx 页面中还是没问题的
    -------------
      

  5.   

    嗯 因为TextBox1.Text的值是通过程序改变的,不是用户直接输入的
    才会出现这个问题!
    -----------------------------
    为什么?? 有什么别的办法吗?(TextBox1.Text的值不能为用户直接输入)