Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Per User, Per Tab/Window Persistent Variable

$
0
0

Hi All,

I have a drop down list whose value I would like to persist across page refreshes/redirects until the tab/window is closed.  I would also like to ensure that the different Users and different tabs/windows opened by the same User are all unique.  Right now I am using something like this to store the drop down list option:

public string Name
    {
        get
        {
            return Page.Session["SaveName"] as string;
        }
        set
        {
            Page.Session["SaveName"] = value;
        }
    }

However, that only appears to function on a per-user basis.  New tabs/windows opened by the same user or refreshes done to a pre-existing one revert to that user's last selected value.

Any thoughts?

Thanks,

MK


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>