write down the following code---
protected void button1_click(Object sender,EventArgs e)
{
Button b=(Button)sender;
if(b==b1[0])//here b1[0],b1[1] are the array on which u create
the button array
{
//Perform the action for the first button
}
if(b==b1[1])
{
//perform the action for the second buton
}
////and co on
}
