Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP Page

 Post Reply Post Reply
Author
bhimpfen View Drop Down
Newbie
Newbie


Joined: 01 March 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote bhimpfen Quote  Post ReplyReply Direct Link To This Post Topic: ASP Page
    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

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post 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

 

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
bhimpfen View Drop Down
Newbie
Newbie


Joined: 01 March 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote bhimpfen Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2003 at 3:41pm
I noticed, I made a mistake, geez...thanks for showing no respect
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.