404 Error Pages

Hi,

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

ps/3/My_Product.aspx

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

Andy
LVL 20
REA_ANDREWAsked:
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();
Response.Write(ex.ToString);

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

HTH
0
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.