//加载一个imagebutton
imagebutton btnSubmit=new imagebutton();
//设置控件属性。
page.controls.add(btnSubmit);
btnSubmit.Click += new System.Web.UI.ImageClickEventHandler(this.btnSubmit_Click);