在執行數據庫操作後加個語句
用try
{數據庫操作語句
Response.Write("success");
}
catch()
{
Response.Write("fail");
}