string id = context.Request["id"];
int funcid = 0;
if (int.TryParse(id, out funcid))
{
FunctionBLL funcbll = new FunctionBLL();
if (funcbll.DeleteById(funcid) > 0)
{
context.Response.Write(jsonback + "({\"html\":\"删除成功!\",\"status\":\"1\"})");
}
else
{
context.Response.Write(jsonback + "({\"html\":\"发生了异常!\",\"status\":\"0\"})");
}
}
else
{
context.Response.Write(jsonback + "({\"html\":\"发生了异常!\",\"status\":\"0\"})");
}
| 欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |