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
 
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
 
Thanks, duh, now thinking about it makes perfect sense! Thanks again!
 
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top