protected void btnDelete_Click( object sender, EventArgs e) |
{ |
StringBuilder sb = new StringBuilder(); |
foreach ( int row in grid1.SelectedRowIndexArray) |
{ |
//grid1.SelectedRowIndexArray 为勾选的行数,历遍 |
string ID = grid1.DataKeys[row][0].ToString(); |
//得到历遍行的第一列数据 |
delete(ID); |
//删除方法,在下面 |
} |
Page.Response.Redirect(Request.Url.ToString()); |
} |
protected void delete( string ID) |
{ |
bool delete = Common.Delete( "TestCSXX" , "EXID" , "" + ID + "" ); |
} |
by: 发表于:2018-01-29 10:59:41 顶(0) | 踩(0) 回复
??
回复评论