using System.Web.Caching
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
Cache[“NewItem”] = “Some string data”;
Cache.Add(“New Item”,”Some data”,null,Cache.NoAbsoluteExpiration, System.TimeSpan.FromMinutes(1),CacheItemPriority.Default, null);
Cache.Insert(“NewItem”,”Some string data”);
}
}
No comments:
Post a Comment