|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
"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.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
I think he's talking about using HTML anchors Vlince
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > link question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|