First, create a page for jump. The Code is as follows.
Copy codeThe Code is as follows:
<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "LoginTiao. aspx. cs" Inherits = "LoginTiao" %>
<! 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 id = "Head1" runat = "server">
<Title> jump page </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;">
The password is successfully modified. Please remember!
<Br/>
The system automatically jumps to <a href = "XXXXX/Home. aspx "> homepage </a>... <span id = "time" style = "font-weight: bold; color: blue"> 5 </span> seconds left!
<Br/>
Or return to the <a href = "Login. aspx"> logon page </a>...
</Div>
</Form>
</Body>
</Html>
Click the page we just created on the page to be referenced.
Response. Redirect ("LoginTiao. aspx ");
The code is simple!