Print Page | Close Window

link in subfolders

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=3486
Printed Date: 29 March 2026 at 6:50pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: link in subfolders
Posted By: OZON
Subject: link in subfolders
Date Posted: 12 June 2003 at 5:46pm
How to use this link index.as?id=12, when index is in folder1 and file 12 is in subfolder folder2?

-------------
Hero of the day.



Replies:
Posted By: Gullanian
Date Posted: 12 June 2003 at 6:29pm

I dont really know what you mean, but if you want to pass more than one value through a querystring, you use & signs after the initial ? sign.  Eg:

page.asp?query1=value1&query2=value2&query3=value3

There is a limit to how much you can have, only use it if your passing small amounts of data through.



Posted By: Bullschmidt
Date Posted: 16 June 2003 at 12:26am

Originally posted by OZON OZON wrote:

How to use this link index.as?id=12, when index is in folder1 and file 12 is in subfolder folder2?

So if your site structure is like this:

http://www.mysite.com/folder1/folder2 - http://www.mysite.com/folder1/folder2

And you're in folder1 and want to refer to a file in folder2:

How about this:

folder2/index.asp?id=12

Or this:

/folder2/index.asp?id=12

Or this:

http://www.mysite.com/folder1/folder2/index.asp?id=12 - http://www.mysite.com/folder1/folder2/index.asp?id=12



-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)


Posted By: pmormr
Date Posted: 16 June 2003 at 5:45pm
when you add a slash to a hyperlink (/filename) it refers back to the site root. So therfore you would have to say "/folder1/folder2/index.asp?id=12".  Just so you don't get confused...

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

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


Posted By: Bullschmidt
Date Posted: 16 June 2003 at 10:17pm
Thanks P.A.M.  That clears up something that I had been wondering about previously.

-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)



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