没有合适的资源?快使用搜索试试~ 我知道了~
–前台 代码如下: <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Successed.aspx.cs” Inherits=”Biz_Order_Successed” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head runat=”s
资源详情
资源评论
资源推荐
asp.net 页面延时五秒,跳转到另外的页面页面延时五秒,跳转到另外的页面
–前台
代码如下:
<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Successed.aspx.cs” Inherits=”Biz_Order_Successed” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head runat=”server”>
<title></title>
</head>
<body>
<form id=”form1″ runat=”server”>
<div style=”height: 100px”>
</div>
<div align=”center”>
<asp:Label ID=”lbmessage” runat=”server” Font-Size=”Large” Font-Bold=”true”></asp:Label>
<br />
<br />
<font size=”4″ >
系统将会在五秒钟后转向浏览页面
</font>
<br />
<br />
<font color=”blue” size=”4″ ><a id=”hrefUrl” href=”” style=”text-decoration: underline” runat=”server”></a></font>
</div>
</form>
</body>
</html>
–后台
代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HyiSoft.WebUtility;
public partial class Biz_Order_Successed : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string message = string.Empty;
string url = string.Empty;
url = Utility.Request(“url”);
message = Utility.Request(“message”);
lbmessage.Text = message;
hrefUrl.HRef = url;
hrefUrl.InnerText = “手动转向页面”;
string strRedirectPage = url;
string strRedirectTime = “5”;
string strRedirect = string.Format(“{0};url={1}”, strRedirectTime, strRedirectPage);
Response.AddHeader(“refresh”, strRedirect);
}
}
您可能感兴趣的文章您可能感兴趣的文章:三种asp.net页面跳转的方法ASP.NET中配合JS实现页面计时(定时)自动跳转ASP.net实现页面跳转的
方法asp.net 页面间传值与跳转的区别ASP.NET 页面刷新和定时跳转代码整理asp.net跳转页面的三种方法比较ASP.NET实现
个人信息注册页面并跳转显示
weixin_38590567
- 粉丝: 2
- 资源: 932
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0