protected void DataList1_DeleteCommand(object source, DataListCommandEventArgs e) { string messageNo = this.DataList1.DataKeys[e.Item.ItemIndex].ToString(); //获取当前DataList控件列 Bmessage.Delete("messageNo=" + messageNo); Page.Response.Redirect("LeaveWordView.aspx?ID=" + Request["ID"].ToString() + ""); }
protected void dlManage_ItemCommand(object source, DataListCommandEventArgs e) { Bmessage.Delete("messageNo=" + e.CommandArgument); }