By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,961 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,961 IT Pros & Developers. It's quick & easy.

Accessing ASP.NET Cache

P: n/a
Hi all,

I need to update the cache of a third party asp.net application when a
user makes a change to a particular table in a SQL Server database (so
the changes appear immediately in the browser). I have a trigger on
the table that calls a COM wrapper, and inside that are calls to a
..net dll.

I've managed to get everthing working together, but I can not seem to
access the cache for the asp.net application from the .net dll.

I have tried httpcontext.current.cache and httpruntime.cache, but both
appear to be empty (even though I know the cache is not empty).

Does any one know how I access an applications cache? Can it even be
done?

Thanks!
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Daren,
I need to update the cache of a third party asp.net application when a
user makes a change to a particular table in a SQL Server database (so
the changes appear immediately in the browser). I have a trigger on
the table that calls a COM wrapper, and inside that are calls to a
.net dll.
if you want to just invalidate the cache whenever you are updating a
particular table then create the cache with filedependency on
"someblank.txt" file. Write a trigger that always overwrites this blankfile
whenever the values in the table is updated.

also please take a look here
http://authors.aspalliance.com/nauti...SqlCache_Part1

HTH
Regards
Ashish M Bhonkiya

"Daren" <da************@chaucerdigital.com> wrote in message
news:f1**************************@posting.google.c om... Hi all,

I need to update the cache of a third party asp.net application when a
user makes a change to a particular table in a SQL Server database (so
the changes appear immediately in the browser). I have a trigger on
the table that calls a COM wrapper, and inside that are calls to a
.net dll.

I've managed to get everthing working together, but I can not seem to
access the cache for the asp.net application from the .net dll.

I have tried httpcontext.current.cache and httpruntime.cache, but both
appear to be empty (even though I know the cache is not empty).

Does any one know how I access an applications cache? Can it even be
done?

Thanks!

Nov 18 '05 #2

P: n/a

Hi Ashish,

Thanks for replying.

I do not have the source code of the asp.net application, so presumably
I can not link the application cache to a file? Sorry for my ignorance,
this is all new to me!

Any other suggestions would be appreciated.

Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

P: n/a
you can not do that way, because your dll and asp.net run in tow defferent
process, you can not access the memory of asp.net appDomain

"Daren" <da************@chaucerdigital.com> ????
news:f1**************************@posting.google.c om...
Hi all,

I need to update the cache of a third party asp.net application when a
user makes a change to a particular table in a SQL Server database (so
the changes appear immediately in the browser). I have a trigger on
the table that calls a COM wrapper, and inside that are calls to a
.net dll.

I've managed to get everthing working together, but I can not seem to
access the cache for the asp.net application from the .net dll.

I have tried httpcontext.current.cache and httpruntime.cache, but both
appear to be empty (even though I know the cache is not empty).

Does any one know how I access an applications cache? Can it even be
done?

Thanks!

Nov 18 '05 #4

P: n/a
Sorry without the code i cannot help you.
"daren" <an*******@developersdex.com> wrote in message
news:eA*************@TK2MSFTNGP10.phx.gbl...

Hi Ashish,

Thanks for replying.

I do not have the source code of the asp.net application, so presumably
I can not link the application cache to a file? Sorry for my ignorance,
this is all new to me!

Any other suggestions would be appreciated.

Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.