remember values in dropdownlist

  • Thread starter Thread starter samuelberthelot
  • Start date Start date
S

samuelberthelot

Hi,
I have a datagrid with dropdownlist (dpl) column. This is bound to a
dynamic datasource, so there can be any number of rows.
When the user select a value in one of dpl's, he is redirected to
another .aspx page. Then if he browse back (using the back button), the
value he selected before in the dpl should still be selected.
I've used a session variable for this, so it is straightforward.
The problem arises when you actually have to keep track of the selected
value in ALL of the dpl's.
Say the user do the 'selection-browse back' flow operation on 10
different dpl's, then they should all have right selected value. I
could use one session variable per dpl, but it seems ackward and
ressource-consumming....
Do you have a better idea ?

Thanx
 
Make an array, or any other collection object containing all the values and
store it in a single session variable.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top