asp.net - Listbox values are persisting across postbacks -


i having listbox in asp.net. populating listbox values listbox in page dynamically. during postbacks values of output listbox not persisted. (while going page , come page).

please suggest answer. enableviewstate = "true" not working.

are doing in page_load should in

if(!ispostback) {} 

initialization code in load needs called when page first loaded, not on postbacks.

if going page , coming page, think need preserve information in session , restore when come page.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -