Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2004, 09:31 AM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kevind23
Default Query String Arguments

HOW THE HECK DO YOU WORK "QUERY STRING ARGUMENTS" ??????. Please Help!!!



ps- i want to use them on my error pages but i want it to be like:

http://kevind23.com/errors/errorgene...?errortype=404
Sorry, but we couldn't find the page you were looking for. If the problem presists, contact the <email link>administrator</a>

Details:
Error 404: The page could not be found.
 
Old May 24th, 2004, 07:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can create custom error pages.

http://www.microsoft.com/technet/pro...s/custerr.mspx


 
Old May 25th, 2004, 06:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Kevind23,

Yes, stu9820's post should help you.

But If you still want to do it in your way.

http://kevind23.com/errors/errorgene...?errortype=404

Within "ErrorGeneral.asp" you got to write something like

Code:
Dim ErrType
ErrType=Request.QueryString("ErrorType")
If Cint(ErrType)=404 then
   Response.Redirect("404.asp")
ElseIf Cint(ErrType)=501 then
   Response.Redirect("501.asp")
ElseIf...
   ...
End If
And put the content within 404.asp, 501.asp, etc...

404.asp '''''Should be coded to show what you wanted on that page.
-------
Sorry, but we couldn't find the page you were looking for. If the problem presists, contact the <email link>administrator</a>

Details:
Error 404: The page could not be found.
________________

Hope that helps.
Cheers!

_________________________
-Vijay G
Strive for Perfection
 
Old June 29th, 2004, 02:07 PM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kevind23
Default

Thanks,
I did make an error system and you can download it at hotscripts.com if you want.;)
 
Old June 29th, 2004, 10:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you please post the direct URL, if you could.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
String Query in vb zrtv VB Databases Basics 3 March 19th, 2008 09:42 AM
Query string value SKhna ASP.NET 2.0 Basics 1 March 17th, 2008 07:27 AM
Query w/ arguments darkhalf Access VBA 2 March 3rd, 2008 10:04 AM
Query String Baby_programmer ASP.NET 1.0 and 1.1 Basics 3 December 24th, 2004 11:14 AM
Query String Nitin_sharma VBScript 1 December 16th, 2004 07:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.