找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 96|回复: 9

[求助]页面跳转问题??

[复制链接]
发表于 2010-1-16 03:56:29 | 显示全部楼层 |阅读模式 IP:江苏扬州
我使用response.redirect语句来实现页面的跳转可怎么弄也跳转不了,老是提示找不到该网页啊。。。
查询界面.asp是存在的页面啊
response.Redirect("查询界面.asp?message=编号不能为空。")
发表于 2010-1-16 03:56:32 | 显示全部楼层 IP:江苏扬州
response.Redirect("查询界面.asp?message='编号不能为空。'")
这样试试
回复

使用道具 举报

发表于 2010-1-16 03:56:36 | 显示全部楼层 IP:江苏扬州
还是不行啊,我把部分代码粘出来麻烦斑竹帮我指正一下。。。

<html>
<title>登入验证</title>
<%
name=trim(request("bianhao"))
id=trim(request("mima"))
typ=request.Form("leixing")
if name="" then
response.buffer=true
response.Redirect("查询界面.asp?message='编号不能为空。'")
end if
condition=" where"
condition=condition &"(编号='" &name&"' and 密码='" &id &"')"
if typ="管理员" then
SQLSTR="select 姓名 from 管理员" &condition
else
SQLSTR="select 姓名 from 学生" &condition
end if
set conn=server.createobject("ADODB.connection")
constr="driver={sql server};server=0C2807CF47F6442;uid=sa;pwd=;database=internet"
conn.open constr
set recordset=conn.execute(SQLSTR)

%>
<body>
</body>
</html>
回复

使用道具 举报

发表于 2010-1-16 03:56:40 | 显示全部楼层 IP:江苏扬州
那就把文件名都改了,不要用中文。
回复

使用道具 举报

发表于 2010-1-16 03:56:44 | 显示全部楼层 IP:江苏扬州
呵呵,可以了,怎么这个还只能用英文名字啊。。。。
对了还有一个小小的问题啊,那个message应该是提示信息吧,可是不能提示啊,只是直接跳转到我们要的页面啊。。。
回复

使用道具 举报

发表于 2010-1-16 03:56:48 | 显示全部楼层 IP:江苏扬州
response.Redirect("查询界面.asp?message='编号不能为空。'")

把查询界面改成英文应该能好。。
不支持中文
回复

使用道具 举报

发表于 2010-1-16 03:56:52 | 显示全部楼层 IP:江苏扬州
关键是message的信息不能显示啊。。。
斑竹能不能帮忙看一下啊
回复

使用道具 举报

发表于 2010-1-16 03:56:56 | 显示全部楼层 IP:江苏扬州
查询界面.asp
需要看这个文件中的东东
回复

使用道具 举报

发表于 2010-1-16 03:57:00 | 显示全部楼层 IP:江苏扬州
<html>
<title>登入验证</title>
<%
name=trim(request("bianhao"))
id=trim(request("mima"))
typ=request.Form("leixing")
if name="" then
response.Redirect("chaxun.asp?message='编号不能为空。'")
else
if id="" then
response.Redirect("chaxun.asp?message='密码不能为空。'")
else
if typ="" then
response.Redirect("chaxun.asp?message='类型不能为空。'")
end if
end if
end if
condition=" where"
condition=condition &"(编号='" &name&"' and 密码='" &id &"')"
if typ="管理员" then
SQLSTR="select 姓名 from 管理员" &condition
else
SQLSTR="select 姓名 from 学生" &condition
end if
set conn=server.createobject("ADODB.connection")
constr="driver={sql server};server=0C2807CF47F6442;uid=sa;pwd=;database=internet"
conn.open constr
set recordset=conn.execute(SQLSTR)
if recordset.eof then
response.Redirect("chaxun.asp?message='不存在的用户,请确认一下信息'")
else
session("bianhao")=name
if typ="学生" then
response.Redirect("student.asp")
else
response.Redirect("teacher.asp")
end if
end if
%>
<body>
</body>
</html>

内容是这个麻烦斑竹了
回复

使用道具 举报

发表于 2010-1-16 03:57:04 | 显示全部楼层 IP:江苏扬州
在这个页面中根本就没有显示message语句,甚至接收都没有。、
这是chaxun.asp这个文件吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 15:25 , Processed in 0.387006 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表