asp弹出提示框怎么做

lesleyc 2006-05-16 04:52:27
If rsworldqty.eof Then
response.redirect("market.asp")
response.write "<script>alert('没有相关记录!');</script>"
end if
但是结果好像只是链接到了market.asp,并没有显示提示框,请问应该怎么弄
...全文
1281 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
葫芦的世界 2006-05-17
  • 打赏
  • 举报
回复
market.asp
Agulado 2006-05-16
  • 打赏
  • 举报
回复
晕...弄出来没有啊。
<%
.............. '前面的程序,下面要提示并跳转了。
%>
<script language="javascript">
alert("没有相关记录!");
window.navigate("market.asp");
</script>
<% response.end() %>

这个肯定是可以的,最后有response.end()。
lesleyc 2006-05-16
  • 打赏
  • 举报
回复
可能是我自己的方法不对,唉。谢谢各位了
byyt 2006-05-16
  • 打赏
  • 举报
回复
用javascript

<script language="javascript">
window.alert("没有相关记录");
window.location="market.asp"
</script>
lesleyc 2006-05-16
  • 打赏
  • 举报
回复
都不行啊,好像<script>里面的语句就没有执行
paopaostudio 2006-05-16
  • 打赏
  • 举报
回复
If rsworldqty.eof Then
response.write "<script>alert('没有相关记录!');</script>"
response.redirect("market.asp")

end if
----》》
这种方法不行,只能跳转不能出现提示框。
lesleyc 2006-05-16
  • 打赏
  • 举报
回复
我用的是vbscript
to 彬彬:这样的我试过了,一样的结果
上面各位的好像都不可以阿
lolo2006 2006-05-16
  • 打赏
  • 举报
回复
这世道...

可怜可怜我们这些抢不到分的人吧
zhangjingcheng 2006-05-16
  • 打赏
  • 举报
回复
Response.Write "<script>alert('提示:出错了...');document.location.href='market.asp';</script>"
jingxiaoping 2006-05-16
  • 打赏
  • 举报
回复
这年头,CSDN的分比俺的工资还难挣。
Agulado 2006-05-16
  • 打赏
  • 举报
回复
角角家族
gamestar1 2006-05-16
  • 打赏
  • 举报
回复
星星家族 都过来接这种没难度的分 哎!
fangq 2006-05-16
  • 打赏
  • 举报
回复
Response.Write "<script>alert('提示:出错了...');location.href='market.asp';</script>"
竹林听雨2005 2006-05-16
  • 打赏
  • 举报
回复
应该是第二种,没注意问题了
竹林听雨2005 2006-05-16
  • 打赏
  • 举报
回复
Response.Write("<script>alert('出错!');history.back();</script>")

Response.Write("<script>alert('出错!');location.href='market.asp';</script>")
itzhiren 2006-05-16
  • 打赏
  • 举报
回复
If rsworldqty.eof Then
response.write "<script>alert('没有相关记录!');</script>"
response.redirect("market.asp")

end if
jingxiaoping 2006-05-16
  • 打赏
  • 举报
回复
response.write "<script>alert('没有相关记录!');
response.write "location.href='market.asp'</script>""
byyt 2006-05-16
  • 打赏
  • 举报
回复
<script language="javascript">
window.alert("没有相关记录");
window.location="market.asp"
</script>
Agulado 2006-05-16
  • 打赏
  • 举报
回复
<%
.............. '前面的程序,下面要提示并跳转了。
%>
<script language="javascript">
alert("没有相关记录!");
window.navigate("market.asp");
</script>
<% response.end() %>
sy_binbin 2006-05-16
  • 打赏
  • 举报
回复
response.write "<script>alert('没有相关记录!');</script>"
response.redirect("market.asp")

28,390

社区成员

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

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