switch (e.CommandName)
{
case "del":
int itemId = (int)DataList1.DataKeys[e.Item.ItemIndex];
Button2.Text = itemId.ToString();
RegisterStartupScript("", "<script> if (confirm('是否删除该信息?图片信息将一并删除,删除后无法恢复!点击确定删除')==true){document.aspnetForm.ctl00_ContentPlaceHolder1_Button2.click();}</script>");
break;
}
DataList_ItemCommand 常用方法
最新推荐文章于 2018-11-11 00:11:29 发布