您的位置:首页 > 其它

根据id删除数据,重新绑定数据源

2009-06-01 16:56 225 查看
protected void rpt_oa_txl_ItemCommand(object source, RepeaterCommandEventArgs e)
{
bool ck = ((CheckBox)(e.Item.FindControl("checkSelect"))).Checked;
if (ck == true)
{
OA_TXL_INFO oa_txl_info = new OA_TXL_INFO();
oa_txl_info.Id = Convert.ToInt32(e.CommandArgument);
int count=Common.ExcuteDelete(oa_txl_info);
if (count > 0)
{

BindInit();
}
else
{
Response.Write("删除失败!");
}

}
else
{
Response.Write("<script>alert('选择要删除的数据!');");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐