asp.net 页面延时五秒,跳转到另外的页面
2009-12-07 00:00
609 查看
--前台
--后台
<%@ 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 页面延时五秒,跳转到另外的页面
- asp.net跳转到另外一个页面的中间部位和将站点生成静态页
- asp.net中页面延时跳转代码
- asp.net中页面延时跳转代码
- 页面延时五秒,跳转到另外的页面
- 在asp.net 中 如何在登录成功后2秒内自动跳转到登录前的页面
- ASP.NET后台页面跳转
- 跳转页面asp.net提供的三种方法比较
- ASP.NET用户登录后跳转到 登录前 的页面 url 跳转
- 转:Asp.net中实现页面跳转的三种方法比较,现在总结如下:
- ASP.NET 页面刷新和定时跳转代码整理
- asp.net 页面跳转 隐藏参数显示
- ASP.NET页面跳转相关知识
- html button 跳转ASP.NET页面跳转技术总结
- asp.net跳转页面的三种方法比较
- asp.net 弹出窗口 单击确定和取消跳转到指定页面
- ASP.NET页面跳转相关知识
- asp.net页面之间的跳转
- asp.net跳转页面的三种方法比较