如何将一个 ascx 页面中会话中的多个选定列表框值传递到另一个 ascx 页面代码是 NameObjectCollection eeSearchString=new NameObjectCollection();
for(i = 0;i <= LbStatus.Items.Count - 1){
if LbStatus.Items(i).Selected {
eeSearchString.Add(new NameObjectPair("status", LbStatus.SelectedItem(i).Text));
}
}
在另一个页面中,我可以访问这样的状态吗?
_status=Convert.ToString(eeSearchString.ItemValue("status"));
请告诉我??还是我需要再次使用循环???