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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -