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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -