| |

VerySource

 Forgot password?
 Register
Search
View: 866|Reply: 2

page.init problem

[Copy link]

4

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Germany

Post time: 2020-12-8 10:30:01
| Show all posts |Read mode
The book says that page.init is only executed once, but I found that it actually runs every time I refresh
I made a dynamic control and placed it in page.init, but it didn’t come out if it was placed under ispostback=fasle in page.load? What's the matter with page.init?
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-12-8 12:45:01
| Show all posts
Execute only once: Execute once in a life cycle of the page.

It runs every refresh: This is the characteristic of B/S program.
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 China

Post time: 2020-12-8 13:15:01
| Show all posts
If you put it outside of ispostback=fasle, it’s okay. Refresh the content inside ispostback=fasle.
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