📄 gettown.asp
字号:
<%@LANGUAGE="VBSCRIPT.Encode" CODEPAGE="65001"%>
<!--#include file="Inc/conn.inc"-->
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
cityId = CInt(request("cityId"))
set con=getConn()
set rs=getRs()
sql="select CityID, CityPostCode, CityName from ChinaCity where "
sql=sql&" Left(CityPostCode, 4)='"&cityId&"' and Right(CityPostCode, 2) <> '00' order by [CityID]"
rs.open sql,con,1,1
while not rs.bof and not rs.eof
outStr=outstr & rs("CityPostCode")&"-"&rs("CityName") & ","
rs.movenext
wend
rs.close
con.close
outStr=left(outStr, len(outStr)-1) 'remove the last ','
response.Write(outStr)
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -