Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • marthin 87 posts 106 karma points
    Sep 09, 2010 @ 16:11
    marthin
    0

    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)

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 09, 2010 @ 16:30
    Sebastiaan Janssen
    0

    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.

  • marthin 87 posts 106 karma points
    Sep 09, 2010 @ 16:55
    marthin
    0

    Thank you Sebastiaan. This will probably work great!

Please Sign in or register to post replies

Write your reply to:

Draft