vbscript 问题

zz95469 2006-06-07 05:54:08
我在网页中添加一个按钮,写了一个过程:


sub button_onclick()
response.redirect(checkin?type=1)
end sub


可是提示有不可识别的字符,好像是 那个 ? 不行,清高手指点
...全文
119 9 打赏 收藏 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
zz95469 2006-06-08
  • 打赏
  • 举报
回复
谢谢
邦迪代驾 2006-06-07
  • 打赏
  • 举报
回复
sub button_onclick()
windows.location=("checkin?type=1")
end sub
cxa_2002 2006-06-07
  • 打赏
  • 举报
回复
这么写:response.redirect ("webform3.aspx?type=1")

把上面的代码放到.net中运行一下就知道了:)
cxa_2002 2006-06-07
  • 打赏
  • 举报
回复
<%@ Page CodeBehind="WebForm3.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="WebApplication1.WebForm3" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm3</title>
</head>

<SCRIPT language="vb" Runat="Server">
sub button_onclick(Sender As Object, e As EventArgs)
response.redirect("webform3.aspx?type=1")
end sub
</SCRIPT>

<body>
<form runat=server>
<input type="button" runat="server" id="b1" value="test" onserverclick="button_onclick">
</form>
</body>
</html>
sl158652726 2006-06-07
  • 打赏
  • 举报
回复
sub button_onclick()
response.redirect"checkin?type=1"
end sub
刚才搞错了
sl158652726 2006-06-07
  • 打赏
  • 举报
回复
sub button_onclick()
response.redirect"checkin?type=1)
end sub
qiubin200236 2006-06-07
  • 打赏
  • 举报
回复
sub button_onclick()
response.redirect("checkin?type=1")
end sub
grakey 2006-06-07
  • 打赏
  • 举报
回复
抢分儿……
  • 打赏
  • 举报
回复
window.location.href="xxx.asp?ttt=1"

28,402

社区成员

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

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