如题,在cs文件中如何一个按钮事件中调用另一个按钮事件?

解决方案 »

  1.   

    protected void Unnamed1_Click(object sender, EventArgs e)
    {
        Unnamed1_Click(null,null);
    }
      

  2.   

    this.button1.Click   +=   new   System.EventHandler(this.button1_Click);    
    this.button2.Click   +=new     System.EventHandler(this.button1_Click   );   
      

  3.   

    也可这样:
    Button1调用Button2.Click事件
        protected void Button1_Click(object sender, EventArgs e)
        {
            .......
            Button2_Click(null, null);
       }