Print Page | Close Window

Error pages in IIS

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5680
Printed Date: 29 March 2026 at 4:21am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error pages in IIS
Posted By: Diep-Vriezer
Subject: Error pages in IIS
Date Posted: 11 September 2003 at 9:52am

Hi all, again a question.

In IIS 6.0 when I specify a custom error page, like Error.aspx, it automaticly pastes the error behind, like this:

Error.aspx?404;/Pages/page.aspx

Now, this is not an ordinary querystring comment, so I was wondering how to read this command in an Code-Behind VB file... Does anyone have some experience with this?



-------------
Gone..



Replies:
Posted By: MorningZ
Date Posted: 16 September 2003 at 12:04pm

Dim FullQueryString As String
FullQuestString = HttpContext.Current.Request.ServerVariables("QUERY_STRING")

and parse from there whatever you want to capture



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Diep-Vriezer
Date Posted: 16 September 2003 at 1:48pm
 Thanks!

-------------
Gone..


Posted By: Diep-Vriezer
Date Posted: 19 September 2003 at 4:11pm
Sooow, howto parse?? Using .SubString()? If so, wich is probably the case, wich is the start number of a string, 0 or 1, or what's the number of the first number/character?

-------------
Gone..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net