ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 15th, 2003, 08:52 AM
esthera esthera is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 138 esthera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 2 m 11 sec
Reputation Power: 6
link question

I have a page called news.asp
It pulls a record out using news.asp&id=1
Some of the info it pulls in would be a link to something further on the page.
In html I would do it <a href=news.asp&id=1#section1>

It doesnt't in the above way.

How can I do this?

Reply With Quote
  #2  
Old September 15th, 2003, 09:15 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
"A page called news.asp" which "pulls out a record". From where? A database? What format are the "records" in? How does the value of the record you want get into the query string? We need more detail of what you are trying, and how your setup works.

Reply With Quote
  #3  
Old September 15th, 2003, 12:10 PM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
In addition to karsh44's post, the first parameter, inside your QueryString, must use the --> ? <-- symbol
NOT the --> & <--

So for example, assuming you have a link in which you'd like to pass a parameter then you'd need to write it like so:

news.asp?id=1

If I dissect this furthermore, then it comes to this:

news.asp // The name of the asp page
? // Identifier
id //name of the parameter
1 // value of the parameter

Now, all subsequent QueryString parameters must use the --> & <-- symbol, like this:

news.asp?id=1&name=John

Where you have the --> & <-- symbol and where name is the second parameter inside your QueryString, John is, obviously, the value of that second parameter.

Remeber, first parameter is used with --> ?
Subsequent parameters are used with --> &

Hope this helps!
Sincerely

Vlince

Reply With Quote
  #4  
Old September 16th, 2003, 06:05 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
I think he's talking about using HTML anchors Vlince

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > link question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway