//这个函数里
private void InitializeComponent()
{ this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button1_Click);
this.Button3.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
private void InitializeComponent()
{ this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button1_Click);
this.Button3.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
解决方案 »
- 为什么这个函数不return
- Repeater问题
- 存储过程如何使用@@identity
- 怎样用js给iframe添加src属性
- datagrid增加 删除 修改 查询 和分页
- [* 100分 *],我在sqlserver2005中新建了一个用户,却在登录时上不去,急,对了立即给分.
- 2005如何获取客户端控件值?
- 我不写正则,希望大家能帮我写一个,要求是只能输入字母或数字,或字母和数字,谢谢!
- 如何得到页面传递的参数值 ASP.NET用Request 在C#下面用什么方法
- 请问在datagrid中模板列的dropdownlist中邦定数据的问题,急!!!
- 高分求解决思路
- 两个问题(磨了好长时间,到处都到不到答案):
this.Button2.Click += new System.EventHandler(this.Button1_Click);
this.Button3.Click += new System.EventHandler(this.Button1_Click);
private void Button1_Click(object sender, System.EventArgs e)
{
string BtnName;
BtnName=(Button)sender.Name;//得到点击Button的NAME.当然也可以得到其它值;
}
this.Button1_Click(new object(),new eventarg())