All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP实例:一无限分类的处理类_[PHP教程]
ASP.NET开发系列之在用户控件中添加事件_[Asp.Net教程]
IIS同一站点下aps.net,1.1与2.0,共存方法_[Asp.Net教程]
不用图像也能构造圆角框_[Html教程]
初学,ASP.NET,AJAX,(四):Timer,和,UpdateProgress_[Asp.Net教程]
让Perl成为你的嵌入式开发工具_php资料_编程技术
Linux系统下PhpMyAdmin目录的安全管理_php资料_编程技术
网友分享:TopStyle Pro 的使用技巧_[Html教程]
ASP.NET中实现多文件上传的实例程序代码_.net资料_编程技术
新瓶旧酒ASP.NET,AJAX(9),-,客户端脚本编程(Sys.Net命名空间下的)_[Asp.Net教程]
Reading number is top 10 pictures
各种囧况!玩游戏最不喜欢出现的十件事(点评)
The money of more than 100 countries and regions3
南昌铁路局攸县车站125户铁路职工微利房终成骗局
Kim jong il's mistress, national beauty JinYuJi actor2
Female model behind the bitterness, often being overcharged3
这年头,找个靠谱的妹子太难了
西班牙山村小景5
Chinese paper-cut grilles art appreciation6
Seductive beauty of crime2
Go to the national museum1
Download software ranking
SP4 for SQL2000
Tram sex maniac 2 (H) rar bag16
实战黑客不求人
电脑知识及技巧大合集
ASP.NET.2.0.XML.高级编程(第3版)
I'm come from Beijing2
功夫熊猫2(下集)
Boxer's Top ten classic battle7
圣殿祭司的ASP.NET.2.0.开发详解-使用C#
仙剑奇侠传98版歌曲
delv published in(发表于) 2014/1/27 6:45:21 Edit(编辑)
.NET内置对象之Cache对象_[Asp.Net教程]

.NET内置对象之Cache对象_[Asp.Net教程]

.NET内置对象之Cache对象_[Asp.Net教程]























Cache对象




对于每个应用程序都需要创建该类的一个实例,并且只要对用的应用程序域保持活动,该实例便保持有效,有关此类实例的所有信息都需要通过HttpContext对象的Cache属性或Page对象的Cache属性来提供。




新建一个网站,包括一个网页,代码如下:




1、Default.aspx代码:




<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>













无标题页
































<%if (itemRemoved)




{




Response.Write("RemovedCallback event raised.");




Response.Write("
");




Response.Write("Reason:" + reason.ToString() + "");




}




else




{




Response.Write("Value of cache key:" + Server.HtmlEncode(Cache["Key1"] as string) + "");




}




%>










来源:csdn













































添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.