You must register the OnClick events for each button before rendering them.
Button b=new Buttons();
b.Click += new EventHandler(b_Click);
void b_Click(object sender, EventArgs e)
{
}
Of course you can register all your buttons to the same handler if they will do the same functionality, and recoginze each one using the sender object in the handler.