52,792
社区成员




protected void gvList_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataTable dt = GetDataTable("select id from [G_Users] where UserTw=" + gvList.DataKeys[e.RowIndex].Value);
if (dt.Rows.Count > 0)
{
Response.Write("<script>alert('This Booths is online do not del!');</script>");
}
else
{
ExecuteSql("delete from [G_Booths] where id=" + gvList.DataKeys[e.RowIndex].Value);
ShowList();
}
}