on line #167 of default.asp find the following:
if rs.EOF then
recCategoryCount = ""
else
allCategoryData = rs.GetRows(adGetRowsRest)
recCategoryCount = UBound(allCategoryData,2)
end if
insert the following on line #168:
if Cat_ID <> "" then response.redirect("default.asp")
so it now looks like this:
if rs.EOF then
if Cat_ID <> "" then response.redirect("default.asp")
recCategoryCount = ""
else
allCategoryData = rs.GetRows(adGetRowsRest)
recCategoryCount = UBound(allCategoryData,2)
end if