Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

404 page not loading correctly... 1

Status
Not open for further replies.

Ram0135

Technical User
Apr 14, 2003
77
US
Hello,
I have a site on an ASP server and I also have a custom 404 page setup (404.asp). The problem is that I want to have ASP code w/ in it to for example, send me an email each time w/ the referer in it. However if the 404 page is loaded by going to an invalid link, the ASP code is NOT processed and is viewable via View Source. But if I call it up directly, (w/ the .asp extension) it loads the ASP code just fine. Is there a way to make it load the ASP code w/ out the .asp extension on it? (the file itself does have it).

Thanks,
Ram0135
 
Hello,
Thanks for replying drexor. I know how to do a 404 page and it is set up. The problem is that the server WON'T load any of the ASP code. It remains in the source code as if it is not processed by the ASP engine.

Ram0135
 
odd, just for giggles, try changing the 404 to something static, then re-applying the change to your custom 404, the change might not have "taken" completely before, OR you might need to start/stop iis for it to re-calc the handling ( iis caching )

i dont know, i never had a problem changing to a custom 404, and seems searching google for custom 404 and "error" or "source" just returns more tutorials.

sorry for the confusion

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
The "Type" setting for the custom error is set to "File". To run code on the error page it should be "URL"

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Thanks Chris for your help! That did the trick!!

Ram0135
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top