Yesterday I saw
ArticleThe author defines several global variables on his own page and the type is static. However, this definition may have problems and will not be problematic when a user accesses the table, however, when a large number of users access the system concurrently, the static global variables on the page may become faulty, then, the author used the session variable to save the data previously recorded by the static global variable. Because the session is a State, it is only related to an access process, in this way, there will be no problems caused by the static type.
In this case, too many sessions are in the system. I always think this is not good, although each session has an ID that does not conflict with each other. ASP. NET introduces viewstate, which records some data values in different PostBack of the same page.
So my solution is:Record the previous static global variables in the form of viewstate ["name"], so as to avoid this problem, because my system is used in the LAN, excessive data volume caused by viewstate is negligible! Haha
I don't know if you can solve this problem?