Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 October 8th, 2004, 10:22 PM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zakarya_hazara
Default cant make a link with Querystring in ASP

hi Developers!
i have a page by the name of index.asp and many other pages like guestbook and....
how can i make a link using Querystring for Example.
index.asp?name=guestbook or index.asp?name=forum

please help me


Reply With Quote
  #2 (permalink)  
Old October 8th, 2004, 10:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Why is that you wanted to use querystring for index.asp and what is expected to be done on requesting those querystrings...

What is that you are looking for? Can you explain exactly what is needed, so as to understand your requirement better.

Cheers!

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old October 8th, 2004, 11:46 PM
Friend of Wrox
Points: 1,288, Level: 14
Points: 1,288, Level: 14 Points: 1,288, Level: 14 Points: 1,288, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Yes zakarya_hazara
 without these explanations one cannot help you


(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
Reply With Quote
  #4 (permalink)  
Old October 9th, 2004, 01:23 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zakarya_hazara
Default

thanks for reading my messages.
i want to make links to my other pages by using Querystring.
my links should look like this after i use Querystring in my website.
Example.
www.mysite.com/index.asp?name=guestbook
                     OR
www.mysite.com/main.asp?name=something
something like this.
when the visitors click on the link then the page which is named someting should be vi
there is the best Example of Querstring in current website.have a look. you can see FORUM_ID=some Number

thanks


Reply With Quote
  #5 (permalink)  
Old October 9th, 2004, 02:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

On the main/index page where you would like to put a link to other pages, add

<a href="fullpath_or_virtualpath/pagename?name=guestbook">

and on this page, you got to request the querystring on to of the page and redirect it to the corresponding page.
Quote:
quote:you can see FORUM_ID=some Number
But, for the example that you see here in this website, it is all database driven and the number that you see refers to the forumID that is recorded in the database and results in showing the particular forum details pulled from the database based on the forumID. In your case, I am not sure if you are looking for some hands on experience to just using the querystring in your pages or are they all(content) database driven, and based on querystring you would like to retrieve the relavant content from the database dynamically? or is that you are using static pages?

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #6 (permalink)  
Old October 9th, 2004, 03:19 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zakarya_hazara
Default

thanks for your help Vijay G
but i want to retrieve the relavant content from the database dynamically. for Example i retrieve the pageId from database.
please tell me in detail!

thanks


Reply With Quote
  #7 (permalink)  
Old October 10th, 2004, 01:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure about your table structure and the infromation that you are trying to retrieve from db.

You may have to pass the querystring to that page, from within which you got to request the querystring and connect to database, retrieve the rows from the database based on querystring value that is passed, and display the same formatted as required.

Hope that helps.
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
make link in text area saban ASP.NET 1.0 and 1.1 Basics 7 November 15th, 2006 11:18 AM
ASP QueryString ... dzagore2 Classic ASP Basics 5 May 7th, 2006 06:21 PM
Problem with QueryString in ASP s.abraham ASP.NET 1.0 and 1.1 Basics 1 March 22nd, 2005 04:43 PM
How to make vb form link? abdusalam Pro VB Databases 1 July 8th, 2004 06:18 AM
How to make vb form link (short cut)? abdusalam VB How-To 7 June 25th, 2004 09:50 AM



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


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