87,910
社区成员
发帖
与我相关
我的任务
分享
<script language="javascript" type="text/javascript">
function ReturnBack()
{
window.navigate("C.asp");
clearTimeout(obj);//清下
}
var obj=setTimeout("ReturnBack()",1000);
</script>
<script language="javascript" type="text/javascript">
function ReturnBack()
{
window.navigate("C.asp");
clearTimeour(obj);//清下
}
var obj=setTimeout("ReturnBack()",1000);
</script>
<%
option explicit
%>
<html>
<body>
<form name="MyForm" method="post" action="B.asp">
Value:<input type="text" name="ValueControl" size="10">
<input type="submit" name="SubmitForm" value="提交">
</form>
</body>
</html>
<%
'Page B:
option explicit
dim sql
sql="INSERT INTO MyTable(MyValue) VALUES('" & request.form("ValueControl") & "')"
dim rsExecute
'MyConnection对象已经创建,是连接数据库的connection对象
set rsExecute=MyConnection.execute(sql)
%>
<html>
<body>
页面将会在1秒钟后自动返回
<script language="javascript" type="text/javascript">
function ReturnBack()
{
window.navigate("C.asp");
}
var obj=setTimeout("ReturnBack()",1000);
</script>
</body>
</html>
<%
'Page B:
option explicit
dim sql
sql="INSERT INTO MyTable(MyValue) VALUES('" & request.form("ValueControl") & "')"
dim rsExecute
'MyConnection对象已经创建,是连接数据库的connection对象
set rsExecute=MyConnection.execute(sql)
response.Write"<meta http-equiv='refresh' content='1;url=C.asp'>"
%>
<%
'Page B:
option explicit
dim sql
sql="INSERT INTO MyTable(MyValue) VALUES('" & request.form("ValueControl") & "')"
dim rsExecute
'MyConnection对象已经创建,是连接数据库的connection对象
set rsExecute=MyConnection.execute(sql)
response.Write"<meta http-equiv='refresh' content='1;url=index.asp'>"
%>