CallBack Method To Refresh Cache Within Global.asax

  • Thread starter Thread starter Jim Douglas
  • Start date Start date
J

Jim Douglas

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
 
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!
 
Back
Top