If someone types in an invalid query string (not sure why but these are popping up in the log) like ?CatID=310SecID=43 how can I get a nice error message to pop up?
I just put this in the live web.config but it doesn't seem to do anything:
<customErrors mode="RemoteOnly" defaultRedirect="PageNotFound.aspx">
<!-- This will redirect 404 error on PageNotFound.aspx ,this will work only for file-types that IIS passes to ASP.NET -->
<error statusCode="404" redirect="PageNotFound.aspx" />
<error statusCode="403" redirect="PageNotFound.aspx" />
</customErrors>
TIA