473,412 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

ASP.NET 2.0 ObjectDataSource caching

Is there a way to manually expire the cache for an objectdatasource?
Dec 7 '05 #1
3 3489
This may help you

http://aspadvice.com/blogs/ssmith/

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"Oldman" <Ol****@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
Is there a way to manually expire the cache for an objectdatasource?

Dec 7 '05 #2
Thanks for the reply. That is helpful in knowning it doesn't support a clear.
The only thing is I want to clear the cache only for a particular
objectdatasource and since the way the datasource caches the data is hidden
from you I wouldn't be sure what entry to clear.
Of course I could figure it out and hard code it assuming it doesn't use any
random numbering/naming for the cache key.

Thanks again.

"Daniel Fisher(lennybacon)" wrote:
This may help you

http://aspadvice.com/blogs/ssmith/

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"Oldman" <Ol****@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
Is there a way to manually expire the cache for an objectdatasource?


Dec 7 '05 #3
I'm going to answer my own question.
The way to manually expire the cache is to use the CacheKeyDependency
property of the datasource.

Thanks.

"Oldman" wrote:
Is there a way to manually expire the cache for an objectdatasource?

Dec 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: osh | last post by:
Fellow ASP.net'ers... I am working on a solution that needs to perform a search (search criteria can be as little as 1 and as high as 20 fields) through an average of 25,000 records and return...
1
by: Felix_WafyTech | last post by:
Hi, I'm working with the ObjectDatasource and the application is getting more and more chatty. Is there a way I could make the ObjectDatasource support multiple DataTables that could be...
2
by: J055 | last post by:
Hi I've implemented caching for my ObjectDataSource. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnableCaching="True" CacheDuration="10" CacheExpirationPolicy="Sliding" ...
7
by: M C | last post by:
Hi, This is a problem that has been haunting me for days and I've come to a complete dead-end. I'm using a objectdatasource to select and update a gridview control. Populating with select works...
0
by: Arjen | last post by:
Hi, On a webpage I used a dataset (for a repeater control) with the objectdatasource. Caching is done in the bll. I'm now asking myself: do I still need the objectdatasource??? I have...
10
by: J055 | last post by:
Hi I've been trying out SqlCacheDependency using the ObjectDataSource and SQL Server 2005. It all works quite well with the minimum of configuration, e.g. <asp:ObjectDataSource...
3
by: Doug Salomon | last post by:
Hi, Recently, my site has been generating errors which say: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled...
2
by: Jami Bradley | last post by:
I'm in need of some design suggestions! We have a fairly large DB with thousands of users accessing data throughout the day. I have been given the task of restructuring a core part of the web...
2
by: =?Utf-8?B?R2hpc3Rvcw==?= | last post by:
Hi, I have an ObjectDataSource bind to a GridView and Sorting is enabled. I have no problem with sorting, I implemented IComparer but I don't want to fetch my data each time from my database....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.