Where should I populate my dropdownlist so that it retains its selection?

gogypiko

New Member
I have seen posts which recommend that I populate the list within a if(!IsPostback) block.However, I only generate the dropdown lists in response to postbacks so I dont think that will work for me.What I currently do is databind the dropdownlists in \[code\]Page_Init\[/code\]. However, when I inspect the list after a new selection is made (and therefore the autopostback has been triggered) using "inspect element" I see that the first item in the list is always "selected."Please let me know how to keep the selection selected through a postback.
 
Back
Top