global.aspx Application_error does not fire on anything other than

J

jvcoach23

ahh.. the server.transfer is not happing at the client...if i were to do a
resposne.redirect, then that would actaully bring up the page url, cause
the client is the one issing the request... that more on track?
 
J

Juan T. Llibre

re:
!> I republished and now i click on the dead link and the address bar shows
!> the dead link url, but the message on the screen is

!> The page you have requested can't be found.
!> We're sorry for the inconvenience.

If that's the case, both global.asax and Application_Error are firing.

re:
!> but the url is the dead link... does that sound correct.

Yes. Server.Transfer preserves the original link.
Errors.aspx will *not* show up on the address bar.
 
J

Juan T. Llibre

Yes, but you'd lose the capability to capture the error messages.
Response.redirect doesn't let you do that.
 
J

jvcoach23

so if you wnat to handle page not found links that are not aspx extensions,
like pdf files, then you need to use the customer error handling... cause
that won't go through the global... am i understanding that right.. is the
custom error the only option at that point... at least from a more web site
prospective..

thanks
shannon
 
J

jvcoach23

if i do the error message capturing before the server.transfer.. then i'd
be able to get the error message ok... that sound correct..

thanks
shannon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top