Forum Moderators: open
This will execute your directoryname/404.asp when there is invalid URL request. You can do your coding in your 404.asp. Invalid url string is available by request.ServerVariables("QUERY_STRING")
how do you return a 404 from within an asp page
eg. pseudo code
IF [i don't want you to look at my page condition] TRUE THEN
return 404 to the browser
ELSE
return content
END IF
currently i'm doing this by response.redirect to a non existant page which fires a 404 error,
but i'm sure there is a better and more elegant way.