protected void Button1_Click(object sender, EventArgs e) { Button btn = sender as Button; Response.Write(btn.CommandArgument.ToString());//前台传按钮参数过来 }