protected void a_Click(object sender, System.EventArgs e)
{
Response.Write("单击a");
}protected void b_Click(object sender, System.EventArgs e)
{
Response.Write("单击b");
         a_Click(sender,e);
}

解决方案 »

  1.   

    orPage.RaisePostBackEven(theButtonYouwant,"");
      

  2.   

    Page.RaisePostBackEvent(theButtonYouwant,"");
      

  3.   

    saucer的方法出现了下面的错误:
    System.Web.UI.Page并不包含对“RaisePostBackEvent”的定义是怎么回事啊?
    难道还要添加什么引用?
    关于的方法,不能触发这个事件啊:
    Button_hid.Attributes.Add("onClick", "return confirm('是否要继续添加?');");我原本打算触发隐藏按钮“Button_hid”的事件来触发以上这个confirm事件,但是现在却不行啊~~
    继续请教ing
      

  4.   

    刚才有些没有说清楚,但又删除不了回复,所以重复一遍=========
    saucer的方法出现了下面的错误:
    System.Web.UI.Page并不包含对“RaisePostBackEvent”的定义是怎么回事啊?
    难道还要添加什么引用?
    关于houjianxun的方法,不能触发这个事件啊:
    Button_hid.Attributes.Add("onClick", "return confirm('是否要继续添加?');");我原本打算触发隐藏按钮“Button_hid”的Click事件来触发以上这个confirm事件,但是现在却不行啊~~
    继续请教ing
      

  5.   

    it is a protected method, you need to call it inside Page's subclass