protected void Delete_CAP(string sql) { clsMySQL db = new clsMySQL(); string sql_delete_cap = "Delete from npi_cap_ep where CAP_EP_Name='" + sql + "'"; if (db.dbQueryExecuteNonQuery(sql_delete_cap) == true) { string strScript = string.Format("<script language='javascript'>alert('未刪除!');</script>"); Page.ClientScript.RegisterStartupScript(this.GetType(), "onload", strScript); } }
protected void Delete_CAP(string sql) { clsMySQL db = new clsMySQL(); string sql_delete_cap = "Delete from npi_cap_ep where CAP_EP_Name='" + sql + "'"; if(db.dbQueryExecuteNonQuery(sql_delete_cap)==true) { string strScript = string.Format("<script language='javascript'>alert('未刪除!');</script>"); Page.ClientScript.RegisterStartupScript(this.GetType(), "onload", strScript); } }