1)Response.Write("<script language='javascript'>window.open('aaa.aspx','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=120')</script>");
2)OnInit中加入
this.button1.Click += new System.EventHandler(button_Click);
this.button2.Click += new System.EventHandler(button_Click);
写一个button_Click函数
这两个按钮共用这个函数如
button_Click(object sender, System.EventArgs e)
{
//代码}