在页面上双击Button按钮。在.aspx文件就会自动加上的。在.aspx.cs中就会有 protected void Button_Click(object sender, EventArgs e){}如果是手动加的话,在.aspx文件中的Button中加入 OnClick="Button_Click"同时也要在.aspx.cs中加入 protected void Button_Click(object sender, EventArgs e){}要不然会报错的。