tags:

views:

29

answers:

1

Hi.. i am facing problem on concating string in classic asp

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

this call must be like

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

Any help will be appreciated.

+2  A: 

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"))%>
grossvogel
error at the first quote of z...
Anil
@@grossvogel Thanks..It needs simply double quotes on z... Thanks .. you solved my problem.. edit answer... ready to mark.
Anil
@@grossvogel.. Edit your answer... I wanna mark it
Anil
@Anil Kumar: edited.
grossvogel