protected void ButtonDelete_Click(object sender, EventArgs e) 5
protectedvoidButtonDelete_Click(objectsender,EventArgse){stringids=Request.Form["Chec...
protected void ButtonDelete_Click(object sender, EventArgs e)
{
string ids = Request.Form["CheckboxSelect"];
// string sql = "update t_GuestOrder set isdelete=3 where id in(" + ids + ") and status=5";
string sql = "delete from t_GuestOrder where isdelete=1 and status=5 and Id in (" + ids + ") ";
Database db = new Database();
int n = db.ExecuteSQL(sql);
if (n == 0)
{
ScriptManager.RegisterStartupScript(this.GetType(), "", "alert('只有作废订单才能删除!')", true);
//response.write("<script>alert('只有作废订单才能删除')</script>");
}
else
{
BindGriview();
}
}
ScriptManager.RegisterStartupScript(this.GetType(), "", "alert('只有作废订单才能删除!')", true);
进了这个地方 但没出提示, 展开
{
string ids = Request.Form["CheckboxSelect"];
// string sql = "update t_GuestOrder set isdelete=3 where id in(" + ids + ") and status=5";
string sql = "delete from t_GuestOrder where isdelete=1 and status=5 and Id in (" + ids + ") ";
Database db = new Database();
int n = db.ExecuteSQL(sql);
if (n == 0)
{
ScriptManager.RegisterStartupScript(this.GetType(), "", "alert('只有作废订单才能删除!')", true);
//response.write("<script>alert('只有作废订单才能删除')</script>");
}
else
{
BindGriview();
}
}
ScriptManager.RegisterStartupScript(this.GetType(), "", "alert('只有作废订单才能删除!')", true);
进了这个地方 但没出提示, 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询