Home > Article > Backend Development > Spread Zhike ASP.NET basic series video material sharing
ASP.NET has all the solutions for developing website applications, including all functions such as validation, caching, state management, debugging and deployment. In terms of code writing, the feature is to separate page logic and business logic. It separates program code and displayed content, making it easier to write colorful web pages. At the same time, the program code looks cleaner and simpler.
"Spread Zhike ASP.NET Basics Series Video Tutorials" ASP.NET is an enterprise Web application development technology platform led by Microsoft. It is currently one of the most popular Web development technologies and can develop various complex functions. website. In order to allow students with zero foundation to learn professional web development technology in the shortest time through the Internet and benefit from it.
Video playback address: http://www.php.cn/course/623.html
The difficulty of this video is :
1. The principle of ViewState
1. The browser requests the Default.aspx page
2. The created ViewState is found on the server side at this time A hidden field named __VIEWSTATE (double underscores are all capital letters)
will be automatically created. The value of the hidden field is encrypted by base64 and returned to the browser. This encryption process is in the SaveState event of the page life cycle
. Completed in the SaveAllState method
3. When the browser submits the form, the hidden field of __VIEWSTATE is also submitted to the server. At this time, the ReadState event of the page life cycle
's ReadAllState method will encrypt The final value is base64 decrypted and finally the value is assigned to the ViewState named name
4. Finally, operate the value in ViewState
2. ViewState usage:
1 .Define the ViewState attribute
public int PageCount{ get{return (int)ViewState["PageCount"];} set{ViewState["PageCount"]=value;} }
2. Conditions for using ViewState
If you want to use ViewState, there must be a server-side form tag in the ASPX page (
The above is the detailed content of Spread Zhike ASP.NET basic series video material sharing. For more information, please follow other related articles on the PHP Chinese website!