|
 |
asp_web_howto thread: Passing ASP to a subroutine
Message #1 by jonathan@j... on Wed, 18 Sep 2002 11:55:04
|
|
The code I'm working on uses a sub to create a link to a url and accepts
various parameters - one of those being the url.
I need to attach values to the querystring of the url, but one of those
needs to be from ASP and I can't seem to get the syntax right.
Here's what I'm trying to do:
<%
Call someRoutine("somepage.asp?x=", "param2", "param3")
%>
Basically I need to be able to insert a value for x.
Obviously I can't do:
<%
Call someRoutine("somepage.asp?x=<%=i%>", "param2", "param3")
%>
Any ideas?
Jonathan
Message #2 by jonathan@j... on Wed, 18 Sep 2002 12:06:44
|
|
Don'tcha just love it when you figure it out yourself?
<%
Call someRoutine("somepage.asp?x=" & i , "param2", "param3")
%>
Jonathan
> The code I'm working on uses a sub to create a link to a url and accepts
v> arious parameters - one of those being the url.
I> need to attach values to the querystring of the url, but one of those
n> eeds to be from ASP and I can't seem to get the syntax right.
> Here's what I'm trying to do:
> <%
> Call someRoutine("somepage.asp?x=", "param2", "param3")
%> >
> Basically I need to be able to insert a value for x.
> Obviously I can't do:
<> %
> Call someRoutine("somepage.asp?x=<%=i%>", "param2", "param3")
%> >
> Any ideas?
>
J> onathan
|
|
 |