ASP.NET中的SqlDataSource缓存 [英] SqlDataSource Caching in ASP.NET

查看:64
本文介绍了ASP.NET中的SqlDataSource缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我真的很想了解SqlDataSource缓存...
是针对每个会话(针对每个用户")分别缓存还是在应用程序级别缓存?

hi!
I would realy like to understand SqlDataSource caching...
is it cached individually for each session (for each "user") or is it cached at the application level

推荐答案

请查看此链接.使用SqlDataSource控件缓存数据 [
Take a look at this link.Caching Data with the SqlDataSource Control[^].
It works based on the setting on the database connection string.The setting enables the database base(MS SQL Sever) to retrieve data with in certain catching time interval. This is useful when you want to avoid a re-run highly resource intensive queries.

I hope this helps you well.


http: //www.java2s.com/Code/ASP/ADO.net-Database/CacheSqldatasourceC.htm [ http://www.java2s.com/Tutorial/ASP.NET/0260__Cache/SqlDataSourcecaching.htm [^ ]
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.cacheduration.aspx [ http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.select.aspx
SqlDataSource选择方法
http://www.java2s.com/Code/ASP/ADO.net-Database/CacheSqldatasourceC.htm[^]
http://www.java2s.com/Tutorial/ASP.NET/0260__Cache/SqlDataSourcecaching.htm[^]
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.cacheduration.aspx[^]
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.select.aspx
SqlDataSource Select Method


这篇关于ASP.NET中的SqlDataSource缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆