设定请求的ID跳转,如果请求的ID为空或无ID请求就跳

时间:2015-01-03 03:38:13
【文件属性】:
文件名称:设定请求的ID跳转,如果请求的ID为空或无ID请求就跳
文件大小:1KB
文件格式:ASP
更新时间:2015-01-03 03:38:13
请求ID跳转 ID为空 无ID请求 <% '以下是设定请求的ID跳转,如果请求的ID为空或无ID请求就跳转到sitemap.html strid=Request("id") if strid="" or not isnumeric(strid) then Response.Redirect ("http://www.52steel.com/sitemap.html") response.End end if set rs=server.CreateObject("ADODB.Recordset") strSql="select id,biaoti,time,neirong from info where 2=2 and infono="&strid&"" rs.Open strSql,conn,3 if rs.EOF then rs.close set rs=nothing conn.close set conn=nothing Response.Redirect ("http://www.52steel.com/sitemap.html") response.end end if strbiaoti = rs("biaoti") strtime = rs("time") strneirong = rs("neirong") %> <%=strbiaoti%>

<%=strbiaoti%>

<%=time%>

<%=neirong%>


网友评论