473,465 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CallBack Method To Refresh Cache Within Global.asax

Ok, I'm must be an dummy, there are tons of examples which none of which I
can get to work! I want to setup and refresh about (10) different cache
items. Most examples show this type of work being completed in the
global.asax but I can't get it to work. I move the code to a C# class, call
it from a webpage and it works fine. Am I trying to code this in the wrong
spot, i.e. global.asa. I am reading up on callback functionality this
evening but am wondering if the object goes out of scope how does it perform
a callback, sorry if that's a basic question.

Again, any help appreciated as I don't want to spend the weekend on this.

Thanks!

Jim Douglas
Aug 5 '05 #1
4 4069
Should be coded in global.asax.cs instead of global.asax ... Double click on
the global.asax file and hit F7 to get to the global.asax.cs

Hope this helps

Brian Delahunty
Ireland

http://briandela.com/blog

"Jim Douglas" wrote:
Ok, I'm must be an dummy, there are tons of examples which none of which I
can get to work! I want to setup and refresh about (10) different cache
items. Most examples show this type of work being completed in the
global.asax but I can't get it to work. I move the code to a C# class, call
it from a webpage and it works fine. Am I trying to code this in the wrong
spot, i.e. global.asa. I am reading up on callback functionality this
evening but am wondering if the object goes out of scope how does it perform
a callback, sorry if that's a basic question.

Again, any help appreciated as I don't want to spend the weekend on this.

Thanks!

Jim Douglas

Aug 7 '05 #2
Thanks, duh, now thinking about it makes perfect sense! Thanks again!

On Sun, 7 Aug 2005 13:33:01 -0700, Brian Delahunty
<Br************@discussions.microsoft.com> wrote:
Should be coded in global.asax.cs instead of global.asax ... Double click on
the global.asax file and hit F7 to get to the global.asax.cs

Hope this helps

Brian Delahunty
Ireland

http://briandela.com/blog

"Jim Douglas" wrote:
Ok, I'm must be an dummy, there are tons of examples which none of which I
can get to work! I want to setup and refresh about (10) different cache
items. Most examples show this type of work being completed in the
global.asax but I can't get it to work. I move the code to a C# class, call
it from a webpage and it works fine. Am I trying to code this in the wrong
spot, i.e. global.asa. I am reading up on callback functionality this
evening but am wondering if the object goes out of scope how does it perform
a callback, sorry if that's a basic question.

Again, any help appreciated as I don't want to spend the weekend on this.

Thanks!

Jim Douglas

Aug 8 '05 #3
Your welcome. Gla dI could help.

--
Brian Delahunty
Ireland

http://briandela.com/blog
"ja***********@genesis-software.com" wrote:
Thanks, duh, now thinking about it makes perfect sense! Thanks again!

On Sun, 7 Aug 2005 13:33:01 -0700, Brian Delahunty
<Br************@discussions.microsoft.com> wrote:
Should be coded in global.asax.cs instead of global.asax ... Double click on
the global.asax file and hit F7 to get to the global.asax.cs

Hope this helps

Brian Delahunty
Ireland

http://briandela.com/blog

"Jim Douglas" wrote:
Ok, I'm must be an dummy, there are tons of examples which none of which I
can get to work! I want to setup and refresh about (10) different cache
items. Most examples show this type of work being completed in the
global.asax but I can't get it to work. I move the code to a C# class, call
it from a webpage and it works fine. Am I trying to code this in the wrong
spot, i.e. global.asa. I am reading up on callback functionality this
evening but am wondering if the object goes out of scope how does it perform
a callback, sorry if that's a basic question.

Again, any help appreciated as I don't want to spend the weekend on this.

Thanks!

Jim Douglas

Aug 8 '05 #4

I finally figured this out, the code would have to go into
global.asax, not the code behind page. Once I added
the code there all is fine! Thanks!

On Sun, 7 Aug 2005 13:33:01 -0700, Brian Delahunty
<Br************@discussions.microsoft.com> wrote:
Should be coded in global.asax.cs instead of global.asax ... Double click on
the global.asax file and hit F7 to get to the global.asax.cs

Hope this helps

Brian Delahunty
Ireland

http://briandela.com/blog

"Jim Douglas" wrote:
Ok, I'm must be an dummy, there are tons of examples which none of which I
can get to work! I want to setup and refresh about (10) different cache
items. Most examples show this type of work being completed in the
global.asax but I can't get it to work. I move the code to a C# class, call
it from a webpage and it works fine. Am I trying to code this in the wrong
spot, i.e. global.asa. I am reading up on callback functionality this
evening but am wondering if the object goes out of scope how does it perform
a callback, sorry if that's a basic question.

Again, any help appreciated as I don't want to spend the weekend on this.

Thanks!

Jim Douglas

Aug 9 '05 #5

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

Similar topics

2
by: Showjumper | last post by:
If i use the cache class in the global asax file in the session sub, can i override for an individual page that has content that will be changing more frequently than the rest of the site? Would i...
3
by: Brian Vallelunga | last post by:
I'm having a problem using the Cache object with asp.net. Here is what I have: 1) I put something in cache and set its callback method. 2) The object times out after X minutes and calls the...
2
by: Promenade | last post by:
Hi, everyone... I want to avoid the user to use the navigator back button. For that reason, I tried all the possible ways to set the Expires property of the Response Object, but whatever I do, it...
1
by: Joe Fallon | last post by:
I am trying to setup a cache that refreshes itself every hour. (My sample code is for every minute so I can test it.) I have found some examples that I thought worked but they all seem to fail....
1
by: Glenn | last post by:
Hi, I have a config XML file that I am using from the application cache. I have configured the entry with a remove callback to re-populate cache automatically when the XML file changes. All is...
4
by: NWx | last post by:
Hi, I' trying to implement a callback method when a cache object expires I want to do this to automatically logout user after a timeout (for demo purposes) My thought is, when user logon,...
1
by: wavemill | last post by:
This is my problem: I have two page: In my first page,i recover my data since my textbox where i inside in my dataset. In the second, i have a label where i insert the data of my dataset. To...
4
by: Jim Douglas | last post by:
Ok, I'm must be an dummy, there are tons of examples which none of which I can get to work! I want to setup and refresh about (10) different cache items. Most examples show this type of work being...
1
by: Hoss | last post by:
Hello- I have the following Javascript code function Obj() { obj.squares = new Array(); } Obj.prototype.Load= function(xdoc) { var goat = "head"; xdoc.ProcessNodes("squares/square",...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.