Re: session variable help?
If it's a multiselect listbox, I'd simply create a session variable, that had your selections, as a comma delimited string on the changed events, and doing a string split in your current page, and updating everything on the form-load of the new page.
Re: session variable help?
I'm assuming that this is for an ASP .NET application.
You can put objects straight into Session- you just have to cast them when you pull them out of Session.
The following example is for dealing with a List<string>
Code:
private List<string> m_StringList;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["StringList"] != null)
m_StringList= (List<string>)Session["StringList"];
}
private void AddStringToList(string item)
{
m_StringList.Add(item);
Session["StringList"] = m_StringList;
}
HTH