Anil
Anil

Reputation: 229

String concatenation in ASP

I am facing a problem with concatenating strings in Classic ASP:

<%=xlagc("http://www.abc.com.au/templates/?a=<%=request.QueryString("a")%>& "&z="<%=request.QueryString('z')%>")

I'm trying to format the call to look like so:

Any help will be appreciated.

Upvotes: 0

Views: 3112

Answers (1)

grossvogel
grossvogel

Reputation: 6782

When you reach /?a=, you're already inside an ASP block, so you want to use & to concatenate that query string variable:

<%=xlagc("http://www.abc.com.au/templates/?a=" & request.QueryString("a") & "&z=" & request.QueryString("z"))%>

Upvotes: 2

Related Questions