易截截图软件、单文件、免安装、纯绿色、仅160KB

Cache Management in ASP.NET

Introduction
Before explaining cache management in ASP.NET, let me clarify that different people use different terms for explaining the same concept i.e. managing data. Some people refer to it as state management and some others refer to it as cache management. I love to use the term cache management, may be because I like the word "cache". But conceptually there is no difference between these two. Now let's discuss different aspects of cache management (or state management) in ASP.NET.
Although cache management is not an issue in Windows applications, it has always been a challenge in the web environment. Since HTTP is a stateless protocol and a web server doesn't recognize users between different requests, it becomes very important for us to recognize a particular user between different requests and also store data so that it can be re-used between different requests. ASP.NET provides many features for storing data both in the client (browser) and the server (web server) sides, but sometimes we get confused with when to use what. In ASP.NET we come across features like Session, Application and Cache objects, but it is important for us to understand the difference between them in order to effectively use them in web applications.
Background
In this article, I will touch upon the different cache management options available in ASP.NET. In a web application, sometimes we require to store data in the server side to avoid costly data retrieval operation from data stores and time consuming data formatting logic to improve application performance as well as to re-use the same data in subsequent requests across users, applications and machines. So, to achieve this we need to store (cache) data in the server side.
Caching helps us to achieve three important aspects of QoS (Quality Of Service):
Performance - Caching improves application performance by minimizing data retrieval and formatting operations.
Scalability - Since caching minimizes data retrieval and forma


相关文档:

实用ASP.NET七大内置对象详解

一、Response对象
Response对象是HttpResponse类的一个实例。该类主要是封装来自ASP.NET操作的HTTP响应信息。
1.Response对象的属性
   ① BufferOutput
   说明:获取或设置一个值,该值指示是否缓冲输出,并在完成处理整个页之后将其发送
   属性值:如果缓冲了到客户端的输出, ......

ASP.NET的五大数据控件浅谈(转)

CheckBox选择组件是一个程序中都经常的组件。在程序设计中使用到该组件,一般都不会只使用到一个,往往是以多个此类组件的形式出现的。在ASP.NET页面中如果要使用到多个CheckBox组件,除了添加多个CheckBox组件在页面中之外,还有一种比较方便的方法,就是使用CheckBoxList 组件。CheckBoxList组件是由一组的CheckBox组件组 ......

ASP.NET 调用存储过程访问数据库

//得到数据为库连接
SqlConnection con=new SqlConnection("数据库连接字符串");
//用存储过程名称和数据库连接创建SqlCommand 对象
SqlCommand command = new SqlCommand("存储过程名称",con);
//打开连接
con.Open();
//对数据库进行相应的操作
...................................
........................... ......

ASP.NET(C#)中web.config文件详解

一、认识Web.config文件
   Web.config 文件是一个XML文本文件,它用来储存 ASP.NET Web 应用程序的配置信息(如最常用的设置ASP.NET Web 应用程序的身份验证方式),它可以出现在应用程序的每一个目录中。当你通过.NET新建一个Web应用程序后,默认情况下会在根目录自动创建一个默认的Web.config文件,包括默认 ......

整理一下别人有关ASP.NET的好博文,没事看看

1、ASP.NET中的AJAX应用开发总结
http://blog.csdn.net/zhoufoxcn/archive/2009/12/07/4954645.aspx
2、用自定义IHttpModule实现URL重写
http://blog.csdn.net/zhoufoxcn/archive/2009/07/14/4346356.aspx
3、把C#中方法重载说透
http://blog.csdn.net/zhoufoxcn/archive/2008/09/09/2902078.aspx
4、.net 实现 URL重 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号