asp.net中倒计时自动跳转页面的实现方法(使用ja
首先,先建立一个用于跳转的页面,代码如下。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LoginTiao.aspx.cs" Inherits="LoginTiao" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://.w3./1999/xhtml" >
<head id="Head1" runat="server">
<title>跳转页面</title>
<script type="text/javascript">
var i = 5;
window.onload=function page_cg()
{
document.getElementById("time").innerText = i;
i--;
if(i==0)
{
window.location.href("XXXXX/Home.aspx");
}
setTimeout(page_cg,1000);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="font-size:small;">
密码修改成功,请牢记!
<br />
秒后自动跳到系统<a href="XXXXX/Home.aspx">首页面</a>...还剩<span id="time" style="font-weight:bold;color: blue">5</span>秒!
<br />
或者返回<a href="Login.aspx">登陆页面</a>...
</div>
</form>
</body>
</html>
然后在要引用的页面打向我们刚刚建立的页面即可
Response.Redirect("LoginTiao.aspx");
代码简单就不贴图了!
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程