404 Error Pages


I have been readin this article and followed all the steps for the 404 error pages, and it works, although

I do not want the first part of the querystring to show up.

i.e., with Custom errors off the querystring looks like


bu with them on which I need it give me the aspxerrorpath in the querystring, how do i get rid of this bvegging part?

LVL 20
Who is Participating?
SammyConnect With a Mentor Commented:
If you need to get the error you still can disable the customerror in the web.config and you can get them page load with a statement like this

Exception ex = Server.GetLastError();

this way you can get the redirection and get to see the errors in your page_load

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.