Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I want to save a value to a global variable one in the OnApplicationStarted event.
Any ideas on how I would do this?
If I was using the Global.asx file I could have done this by saving a value to Application["myvar"].
Thanks
Paul
Maybe Runtime cache will help you
https://our.umbraco.org/documentation/reference/cache/updating-cache
http://www.codeshare.co.uk/blog/simple-reusable-net-caching-example-code-in-c/
Hi Marcio,
That did the trick.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Global variable in OnApplicationStarted
Hello,
I want to save a value to a global variable one in the OnApplicationStarted event.
Any ideas on how I would do this?
If I was using the Global.asx file I could have done this by saving a value to Application["myvar"].
Thanks
Paul
Maybe Runtime cache will help you
https://our.umbraco.org/documentation/reference/cache/updating-cache
http://www.codeshare.co.uk/blog/simple-reusable-net-caching-example-code-in-c/
Hi Marcio,
That did the trick.
Thanks
Paul
is working on a reply...