First, a good viewstate analysis tool is released, which can directly translate viewstate.
Download
Official Website http://www.binaryfortress.com/aspnet-viewstate-helper/
Viewstate compression is based on this article
First understand icsharpcode
WinZip has always been used for compression, making it easy to call, and the company also has copyrights, so we have never considered other things. However, the only disadvantage is that you need to install Windows zip and its command line addon.ProgramKnowing the WinZip path of the call is not very convenient to configure. In this project, considering the ease of configuration of the program, we decided to use another method for compression. After finding it, we found the sharpziplib component of icsharpcode, which is open-source and has powerful functions: compression, decompression, encryption, and other functions are available, and the call is quite convenient, so I decided to use this component. Similarly, in order to better serve the project, this component is encapsulated and called more easily.
Others do not have in-depth understanding, so I will take a closer look later.