| |

VerySource

 Forgot password?
 Register
Search
View: 757|Reply: 5

Find an ASP.NET anti-refresh code (C #)

[Copy link]

4

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-4 13:30:01
| Show all posts |Read mode
Everyone help !! Full code !!
Reply

Use magic Report

0

Threads

6

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-5 12:24:01
| Show all posts
Use check code?
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-5 15:18:01
| Show all posts
There are ways to do this, but it is generally not used.


if (! this.IsPostBack)
{
 Session ["SavedData"] = "0"
}

//save


void SaveData ()
{
    if ((String) Session ["SavedData"] == "1")
    {
// Display information, indicating that it has been saved.
          return; //
     } else
     {

       // save data
 Session ["SavedData"] = "1";

    }

}
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-5 15:27:01
| Show all posts
Generally, as long as there is a unique index in the input field, it does not matter, and then save the reminder record to repeat.
Reply

Use magic Report

4

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-1-17 15:36:01
| Show all posts
How to get the anti-refresh counter?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-17 22:36:01
| Show all posts
Is it to judge the traffic?
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