asp.net page delay five seconds, jump to another page _ practical skills

Source: Internet
Author: User
--Front desk
Copy Code code as follows:

<%@ 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 ">
<title></title>
<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" >
The system will turn to the browsing page in five seconds.
</font>
<br/>
<br/>
<font color= "Blue" size= "4" ><a id= "Hrefurl" href= "style=" Text-decoration:underline "runat=" Server > </a></font>
</div>
</form>
</body>

--Backstage
Copy Code code as follows:

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 send Er, 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 = "Manual Steering page";
string strredirectpage = URL;
String strredirecttime = "5";
String strredirect = string. Format ("{0};url={1}", Strredirecttime, Strredirectpage);
Response.AddHeader ("Refresh", strredirect);
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.