开发者

String concatenation in ASP

I am facing a probl开发者_JAVA技巧em 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.


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"))%>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜