hi,
you can create anonymous function and associate click event with your all buttons.
you can decide what you want to do with different buttons.
or you can associate your function like
btn.Click += new System.EventHandler(this.myFunction);
Hope this will help you,
Thanks
-Amit