Hi,
onclick="Button2_Click" only works if you have AutoEventWireup="true" in the .aspx or .ascx file.
If it is false there then you need to remove the declaration on the control and wire it from the OnInit in code behind
Button2.Click += new EventHandler(Button2);
Hope that helps,
Joe