Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
ASP.NET

Application State in Web Forms

Share app-wide data with Application (lock on writes).

Application State in Web Forms — a practical guide to Web Forms Application state with clear examples you can reuse in real projects.

ASP & ASP.NET Tutorial Series (75/247). Prefer one article? Read the complete ASP.NET tutorial.

Short description

Often replaced by Cache for expiration-friendly data.

Application

Application.Lock();
Application["Visits"] = (int)Application["Visits"] + 1;
Application.UnLock();

Leave a reply

Your email address will not be published. Required fields are marked *