404 Error Pages

Posted on 2006-05-10
Last Modified: 2012-06-27

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?

Question by:REA_ANDREW
    1 Comment
    LVL 27

    Accepted Solution

    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now