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 4 4066
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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....
|
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...
|
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,...
|
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...
|
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...
|
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",...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |