Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: sending parameters through hyperlink


Message #1 by "Arsalan" <arsal21@y...> on Sat, 26 May 2001 12:04:20
i am displaying the results from the Access DB as a search results along 

with a hyperlink that takes some parameters to and send them to some  

another page.

the problem is that if more then 1 result displayed as a search then this 

works ok but as soon as more then one result displayed, then its hyperlink 

takes to the pages which shows the results of the first row. i.e. only the 

first row of the objrs is conneted to hyperlink and only thats pages is 

displayed and not another,

what could be the problem ? 
Message #2 by "Ian Richardson" <ian@i...> on Sat, 26 May 2001 14:56:37 +0100
would need to see your code, but it sounds like you're not using:

<% Do While NOT rst.EOF

		Response.Write "<a href=pagename.asp?key=" & rst("fieldname") & ">"

		Response.Write rst("fieldname") & "</a>"

		rst.MoveNext

		Loop



rst.close

Set rst = Nothing

%>



hth



ianmetaxa

-----Original Message-----

From: Arsalan [mailto:arsal21@y...]

Sent: 26 May 2001 12:04

To: ASP Databases

Subject: [asp_databases] sending parameters through hyperlink





i am displaying the results from the Access DB as a search results along

with a hyperlink that takes some parameters to and send them to some

another page.

the problem is that if more then 1 result displayed as a search then this

works ok but as soon as more then one result displayed, then its hyperlink

takes to the pages which shows the results of the first row. i.e. only the

first row of the objrs is conneted to hyperlink and only thats pages is

displayed and not another,

what could be the problem ?

  Return to Index