我正在使用 Jqgrid。我想根据服务器 Response 显示 Delete msg 。但是当我使用 response.responsText 时,我得到了完整的 HTML 页面内容.. 帮帮我
afterComplete: function(response,postdata,formid) {
alert("'"+response.responseText+"'")
}
DataTable dr = new DataTable();
da.SelectCommand = new SqlCommand("select * from CustomerOrders where QuotationID='" + ID + "'", conn);
conn.Open();
da.SelectCommand.ExecuteNonQuery();
da.Fill(dr);
conn.Close();
if (dr.Rows.Count > 0)
{
Response.Write("dddd");
}
else
{
da.DeleteCommand = new SqlCommand("delete from QuotationTemplates where QuotationID='" + ID + "'", conn);
conn.Open();
da.DeleteCommand.ExecuteNonQuery();
conn.Close();
da.DeleteCommand = new SqlCommand("delete from Quotations where ID ='" + ID + "'", conn);
conn.Open();
da.DeleteCommand.ExecuteNonQuery();
conn.Close();
Response.Write("nave");
}