| |

VerySource

 Forgot password?
 Register
Search
Author: basker

Web development using global variables

[Copy link]

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-8-4 11:00:01
| Show all posts
Session can solve the timeliness, you should set its validity to a large value, such as 9999
is this OK
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-4 13:45:02
| Show all posts
I sometimes do this: create a new page that does not need to execute the page_load event (that is, there is no hyperlink to this page, this page does not need to be displayed), the global variables that need to be accessed are all in the .cs or .vb file of this page In the statement!
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-8-7 12:45:01
| Show all posts
mlbsts:
The problem is that Session is set on the server side and cannot be set on the client side. So it will still fail!
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