Print Page | Close Window

ASP Page

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3520
Printed Date: 29 March 2026 at 5:01pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Page
Posted By: bhimpfen
Subject: ASP Page
Date Posted: 13 June 2003 at 2:06pm

Anyone know a place with a tutorial that can help me with this:

Example: I have 3 navigation links called home,forum,contact

I want the link to be:

home - default.asp
forum - default.asp?forum
contact - default.asp?contact




Replies:
Posted By: pmormr
Date Posted: 13 June 2003 at 2:32pm

if you know anything about asp coding you should know that you retrieve need to put something like default.asp?mode=forum or you can't retrieve it easily. Once you modify those links then simply have default.asp contain some asp code like this...

Select case request.querystring("mode")
   Case "";
      Response.Redirect("home.htm")
   Case "forum";
      Response.Redirect("forum.asp")
   Case "contact";
      Response.Redirect("contact.asp")
End Select

 



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Scotty32
Date Posted: 13 June 2003 at 3:37pm

i dont think he knows any asp... or only knows very little

but i suggest:

Select case request.querystring("mode")
   Case "";
      <!--#include file="page/home.inc"-->
   Case "contact";
      <!--#include file="page/contact.inc"-->
End Select

i would avoid using this for the forum as it wont work (espesially if you use the WWG Forum)

but if you make a templete then put my code
(well edited of the person above :P)

in where your content goes... then put the content text or wot ever into a page, then put into a folder like above

it will include it into your page, so you use 1 page for all your pages

but like the person said... you cant have "default.asp?contact"

you have to have lets say "default.asp?mode=contact" you can change mode to anything you like and change contact to wot ever the page is



Posted By: bhimpfen
Date Posted: 13 June 2003 at 3:41pm
I noticed, I made a mistake, geez...thanks for showing no respect



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