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);
进了这个地方 但没出提示, 展开
启帆信息
2024-11-19 广告
2024-11-19 广告
启帆信息是英伟达中国区代理商,原厂授权代理,提供全面的软件技术解决方案以及NVIDIA以太网产品、交换机等产品,欢迎前来咨询!...
点击进入详情页
本回答由启帆信息提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询