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
Hi,
Is it possible to store a Application("som variable") = "some value" that holds different values deping on which site you are visiting? (the values could be something like Company description or some value)
Sure, you could probably get away with using the HttpApplicationState from a usercontrol. I haven't done it, but should not be too difficult.
If it's just a description, I suggest just put it in the top node for your site under which all other nodes fall and get it recursively.
Your node structure would have to look something like this:
- Site node - Home - Page 1 - Contact - Etc.
In "Site node" you'd have the description.
Thank you Sebastiaan. This will probably work great!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Multiple sites with uniq Application state
Hi,
Is it possible to store a Application("som variable") = "some value" that holds different values deping on which site you are visiting? (the values could be something like Company description or some value)
Sure, you could probably get away with using the HttpApplicationState from a usercontrol. I haven't done it, but should not be too difficult.
If it's just a description, I suggest just put it in the top node for your site under which all other nodes fall and get it recursively.
Your node structure would have to look something like this:
- Site node
- Home
- Page 1
- Contact
- Etc.
In "Site node" you'd have the description.
Thank you Sebastiaan. This will probably work great!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.