发布时间:2018-07-23编辑:admin阅读(3200)
在RowCommand事件中处理,给Button添加CommandName,在RowCommand事件中通过CommandName来区分点击了哪个Button。
1 2 3 4 | if (e.CommandName == "修改" ) { Response.Write( "点击按钮索引" + e.CommandArgument.ToString()); } |
关键字: GridView中处理ButtonField的单击事件
0人
0人
0人
0人