Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 23rd, 2004, 09:31 AM
Registered User
 
Join Date: May 2004
Location: , , .
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.
Reply With Quote
  #2 (permalink)  
Old May 24th, 2004, 07:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can create custom error pages.

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


Reply With Quote
  #3 (permalink)  
Old May 25th, 2004, 06:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
  #4 (permalink)  
Old June 29th, 2004, 02:07 PM
Registered User
 
Join Date: May 2004
Location: , , .
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.;)
Reply With Quote
  #5 (permalink)  
Old June 29th, 2004, 10:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:08 AM.


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