页面跳转!在线等待!

dsmount 2004-10-23 12:50:46
我把代码贴上来:
rs.open"select * from table",conn,1,1
if rs.eof then
response.write "<SCRIPT>winopen('testpage.asp');</SCRIPT>"
end if
为什么不可以跳转到testpage.asp?

怎么才可以实现啊!
...全文
226 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
bolm 2004-10-23
  • 打赏
  • 举报
回复
winopen
->
window.open
或者用
response.redirect "URL"
bbcbs 2004-10-23
  • 打赏
  • 举报
回复

if rs.eof then
response.Redirect "testpage.asp"
end if
BILLSJONE 2004-10-23
  • 打赏
  • 举报
回复
window.open
yb2008 2004-10-23
  • 打赏
  • 举报
回复
response.redirect "testpage.asp"


我也记一次!


jiesoft 2004-10-23
  • 打赏
  • 举报
回复
大家回答的都差不多,我也来凑个数吧,有分无分无所谓的。。。
我也是初学,就当再记忆一次吧。。。
if rs.eof then
response.Redirect "testpage.asp"
end if
qingtian1318 2004-10-23
  • 打赏
  • 举报
回复
if rs.eof then
response.Redirect "testpage.asp"
end if

EAGLEXU 2004-10-23
  • 打赏
  • 举报
回复
改成这样吧:
response.write "<meta http-equiv='refresh' content='0;url=testpage.asp'>"
bbcbs 2004-10-23
  • 打赏
  • 举报
回复
上楼的更猛了。。。。。。晕~~
bbcbs 2004-10-23
  • 打赏
  • 举报
回复
汗。。。抢分呀。。却和JS掺着用,有什么好处呀。。。
纪俊 2004-10-23
  • 打赏
  • 举报
回复
rs.open"select * from table",conn,1,1
if rs.eof then
response.write "<SCRIPT>winopen('testpage.asp');</SCRIPT>"
end if
->

rs.open"select * from table",conn,1,1
if rs.eof then
response.redirect(testpage.asp)
end if
/////////////////////////////////////////////////////////////////////
欢迎大家使用编程文档手册V3.5,编程辅助类软件

集编程文档的收集、查询、浏览、编辑等功能于一体的辅助编程类软件。通过日积月累,相信本软件将给广大程序开发人员以及编程爱好者们带来很大的帮助。

下载地址:
天空软件站:http://www.skycn.com/soft/11906.html
fenlin 2004-10-23
  • 打赏
  • 举报
回复
response.write "<SCRIPT>winopen('testpage.asp');</SCRIPT>"
winopen改为:window.open

28,408

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧