|
 |
asp_databases thread: sending parameters
Message #1 by "Arsalan" <arsal21@y...> on Wed, 23 May 2001 14:04:50
|
|
i want the query results to be send as parameters to another page like
objrs("field")
how to send more then one parameters, whats the syntax,
and how to handle them in the page where they are send ?
Message #2 by "Jason Byrnes" <byrnes@f...> on Wed, 23 May 2001 09:44:32 -0400
|
|
all you need to do is separate each parameter in the url with an
ampersand(&), for example, to pull fields out of a database use:
Response.Write "<a href=""pagename.asp?a=" & objRS("field1") & "&b=" &
objRS("field2") & "&c=" & objRS("field3") & """>" & vbCrLf
Then on the page that you whant to recieve these values, reference them as:
Request.QueryString("a")
Request.QueryString("b")
Request.QueryString("c")
Its usaly a good practice to put thes values into variable (both to cut down
on mistakes and typing) so use:
Dim strA, strB, strC
strA = Request.QueryString("a")
strB = Request.QueryString("b")
strC = Request.QueryString("c")
HTH
Jason
Arsalan" <arsal21@y...> wrote in message news:67845@a..._databases...
>
> i want the query results to be send as parameters to another page like
> objrs("field")
> how to send more then one parameters, whats the syntax,
> and how to handle them in the page where they are send ?
>
>
|
|
 |