[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

404 Error Pages

Posted on 2006-05-10
1
Medium Priority
?
474 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:REA_ANDREW
1 Comment
 
LVL 27

Accepted Solution

by:
Sammy Ageil earned 2000 total points
ID: 16647474
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses

873 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