using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class andmehoid : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Application["a"] = (Application["a"] == null) ? 1 : (int)Application["a"] + 1; Label1.Text = Application["a"].ToString(); Session["a"] = (Session["a"] == null) ? 1 : (int)Session["a"] + 1; Label2.Text = Session["a"].ToString(); Cache["a"] = (Cache["a"] == null) ? 1 : (int)Cache["a"] + 1; Label3.Text = Cache["a"].ToString(); ViewState["a"] = (ViewState["a"] == null) ? 1 : (int)ViewState["a"] + 1; Label4.Text = ViewState["a"].ToString(); } }