回 帖 发 新 帖 刷新版面

主题:请问这个程序那里出问题了?

<html>
<head>
<title>redirect</title>
</head>
<% Response.Buffer=True %>
<%
    gosite=Response.QueryString("gosite")
    Select case gosite
      Case "sina"
        Response.Redirect"http://www.sina.com"
      Case "sohu"
        Response.Redirect"http://www.sohu.com"
      Case "yahoo"
        Response.Redirect"http"//www/.yahoo.com"
    End Select
%>
<body bgcolor="#ddffff">
<Center>
<B>请选择要转向的网站:</B>
<form action="02.asp" method="GET">
<Select name="gosite">
    <option value="sina" Selected>新浪网
    <option value="sohu">搜狐网站
    <option value="yahoo">雅虎中国
</select>
<input type=submit value="GO">
</form>
</Center>
</body>
</html>


<body>

</body>
</html>
[b]在浏览器中提示如下:
Microsoft VBScript 运行时错误 错误 '800a01b6' 

对象不支持此属性或方法: 'QueryString' 

/02.asp,行 7 
[/b]

回复列表 (共1个回复)

沙发

错误:Response.QueryString("gosite")

应该是:Request.QueryString("gosite")

我来回复

您尚未登录,请登录后再回复。点此登录或注册