Ten ways to manage status in ASP.NET

zhaozj2021-02-16  43

The HTTP protocol is stateless, and ASP.NET provides a rich means of managing status between pages. This article lists ten ways to manage status in ASP.NET.

ASP.NET, from the class inherited from System.Web.ui.page: 1. Application object: this.Application 2. SESSION object: this.Session 3. Cookie object: this. Request.cookies 4. Query strings: this.Request.QueryString 5. Form variable and hidden variable: this.Request.Params 6. Cache object: this.cache 7. ViewState object: this.viewState 8. httpContext object: this. Context.handler and this.Context.Items 9. Static object: No Static Class or Static Class 10. Web.config Configuration section: configurationSettings.AppSettings.

The way the chick shooter is the favorite way is cache, huh, huh.

转载请注明原文地址:https://www.9cbs.com/read-20654.html

New Post(0)