if you bind multiple buttons to the same event handler, you can check the first parameter of the handler, for examplevoid Button_Clicked(Object sender, EventArgs e)
{
Button b = (Button)sender;
if (b.ID == "btn1")
....
}or you can revert back to the old trick, check Request.Form["btn1"], if it is not null and not empty, you know you clicked btn1
{
Button b = (Button)sender;
if (b.ID == "btn1")
....
}or you can revert back to the old trick, check Request.Form["btn1"], if it is not null and not empty, you know you clicked btn1
就是比如按"编辑"按钮时,
RegularExpressionValidator等控件会去判断同一页的不相关的其它文本框.
而运行"增加"按钮时,又会去判断不相关的编辑文本框