2013-02-04 64 views
0

我有一段ASP經典代碼,而不是響應寫我的信息,則返回「真」ASP經典代碼真正迴歸,而不是結果的Response.Write

下面是相關線路:

response.write "<a href='search.htm?supplier_name= & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>" 

我相信問題與此相關的部分:

& "&order=state'>State</a>" 

ASP代碼全部:

<% 
if request.querystring("order") = "state" then 
response.write("State") 
else 
response.write "<a href='search.htm?supplier_name= & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>" 
end if 
%> 

回答

2

缺少一個雙引號supplier_name=後:

response.write "<a href='search.htm?supplier_name=" & request.querystring('supplier_name') & "&aircraft_type=" & request.querystring('aircraft_type') & "&state=" & request.querystring('state') & "&order=state'>State</a>"