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 October 8th, 2004, 10:22 PM
Registered User
 
Join Date: Oct 2004
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


 
Old October 8th, 2004, 10:48 PM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old October 8th, 2004, 11:46 PM
Friend of Wrox
 
Join Date: Jun 2004
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
 
Old October 9th, 2004, 01:23 AM
Registered User
 
Join Date: Oct 2004
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


 
Old October 9th, 2004, 02:40 AM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old October 9th, 2004, 03:19 AM
Registered User
 
Join Date: Oct 2004
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


 
Old October 10th, 2004, 01:53 AM
Friend of Wrox
 
Join Date: Jun 2003
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





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





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