1、正确的源代码为:
- HTML code
<a href="/Search/scompanys.asp?sid=2_1_1&subcatid=16&provinceid=<%=newcity%>" target="_blank">热轧薄板</a>
2、为了实现多个网页下重复调用,我想将其改写成通用格式:
- HTML code
<% dim wangzhi, qita,city addr=lcase(trim(request.ServerVariables("Path_Info"))) if instr(addr,"/seatch/") > 0 then wangzhi="/Search/scompanys.asp?sid=" qita="provinceid=" city="newcity" end if %> <a href="<%=wangzhi%>2_1_1&subcatid=16&<%=qita%>&'<%'&<%=city%>&'%>'"& target="_blank">热轧薄板</a>
3、但是,【=<%=newcity%>】我怎么也实现不了。恳请大师指点
------解决方案--------------------
<a href="<%=wangzhi%>2_1_1&subcatid=16&<%=qita%><%=city%>"& target="_blank">热轧薄板</a>
或者这样也行
<a href="<%=wangzhi%>2_1_1&subcatid=16&<%=qita & city%>"& target="_blank">热轧薄板</a>