| |

VerySource

 Forgot password?
 Register
Search
View: 1267|Reply: 10

Problems with timing jumps

[Copy link]

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-29 16:20:01
| Show all posts |Read mode
After login, jump to the page you just visited
How does this work?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-2 19:15:01
| Show all posts
Personally I suggest you use AJAX ~ to define a Timer ~ to control the jump time through him ~
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-2 21:15:01
| Show all posts
1.If it is form authentication, you can use: System.Web.Security.FormsAuthentication.RedirectFromLoginPage (

2. Handwritten. Add the current URL before the login page

Respnose.Redirect ("login.aspx? Url =" + Server.UrlEncode (Request.Url.ToString ()));

After login, jump to the address pointed to by the parameter url.
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 China

Post time: 2020-3-2 22:45:01
| Show all posts
Can be achieved with JS TimeOut
Reply

Use magic Report

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Dominican Republic

 Author| Post time: 2020-3-4 09:00:01
| Show all posts
shenmue024

Oh i don't understand
Is that effect
But I do other operations, such as deleting a record (page 1), going to a page (page 2) to tell him success or not, and then returning to the list (page 3)
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-4 09:45:01
| Show all posts
<head>
······
<META http-equiv = "REFRESH" content = "3; URL = default.aspx">
</ head>
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-4 19:45:02
| Show all posts
But I do other operations, such as deleting a record (page 1), going to a page (page 2) to tell him success or not, and then returning to the list (page 3)
=============
After the operation is completed

Response.Redirect ("showmessage.aspx? Message =" + Server.UrlEncode ("Operation succeeded!")
+ "&Url =" + Server.UrlEncode ("page3.aspx? Id = 3&aa = 2&cc = 3"));
Reply

Use magic Report

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-3-5 05:30:01
| Show all posts
shenmue024
Response.Redirect ("showmessage.aspx? Message =" + Server.UrlEncode ("Operation succeeded!")
+ "&Url =" + Server.UrlEncode ("page3.aspx? Id = 3&aa = 2&cc = 3"));

This is okay, so what timing method? Display the result on page 2 for two seconds and go to page3?
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-5 14:00:01
| Show all posts
Client.


window.setTimeout (Redirect, 3000)

function Redirect ()
{
 var url = "<% = Request.QueryString [" Url "]%>";
 window.location.href = url;
}
Reply

Use magic Report

3

Threads

17

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-3-6 03:15:01
| Show all posts
<head>
<Meta http-equiv = "refersh" content = "3; URL = index.aspx">
</ head>
The value of content above jumps to the URL after a few seconds ...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list