c# - List Output Help -
how create list on click add data list stored session variable, on page retrieve variable , output them? have:
page load:
list
<myclass>
listname=new list<
myclass>
onclick:
listname.add(3); listname.add(4);
session[“ids”]=listname;
second page
????
i need whole list , add output list can output (hopefully) ‘3’ , ‘4’.
list<myclass> listnames = (list<myclass>)session[“ids”];
you can read on msdn: asp.net session state overview
Comments
Post a Comment