ASP页面合并请教。
时间:2011-11-30
来源:互联网
有没有办法把下面的代码,和代码中提到的index.asp合并成一个页面。不能改变现有判断的本意。
VBScript code
VBScript code
<% Dim rs,sql,Url,Id set rs=conn.execute("select * from User where Id = '"&Id&"'") Url = request.servervariables("HTTP_HOST") if Url = "www.baidu.com" or Url= baidu.com" then Response.Redirect("index.asp") Response.end Else Id = split(url,".") Id = replace(Id(0),"http://","") set rs=conn.execute("select * from User where Id = '"&Id&"'") If not rs.eof Then response.Write ("<frameset><frame src='Mb/Mb001/index.asp?Id="&Id&"'></frameset>") Else Response.Redirect("index.asp") End If End if call close_conn %>
作者: boruihao1 发布时间: 2011-11-30
代码中提及了两个index.asp呢
作者: p2227 发布时间: 2011-11-30
引用 1 楼 p2227 的回复:
代码中提及了两个index.asp呢
代码中提及了两个index.asp呢
两个index.asp是同一个文件。
作者: boruihao1 发布时间: 2011-11-30
If not rs.eof Then
response.Write ("<iframe src='Mb/Mb001/index.asp?Id="&Id&"'></iframe>")
Else
Response.Redirect("index.asp")
End If
原来那是啥
response.Write ("<iframe src='Mb/Mb001/index.asp?Id="&Id&"'></iframe>")
Else
Response.Redirect("index.asp")
End If
原来那是啥
作者: theforever 发布时间: 2011-12-01
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28