开发者

String concatenation in ASP

开发者 https://www.devze.com 2023-01-09 08:17 出处:网络
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.Qu

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

精彩评论

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