c#判断点击的是哪一个Button

分享到:

c#在click事件中使用  Button btn = sender as Button;即可知道是哪个button 例如:

void someButton_Click(object sender, EventArgs e){

Button curButton = sender as Button; //当前Button

}

昵    称:
验证码:

相关文档:

ASP.net
C#