on the server side?if (Request.Form[Button1.UniqueID] != null)
{
  //Button1 is clicked
}
else if (Request.Form[Button2.UniqueID] != null)
{
  //Button2 is clicked
}
if they map to the same handler, you can dovoid Button_Click(Object sender, EventArgs e)
{
  Button btn = (Button)sender;
  string s = btn.ID;
}