Check Box List Selected Items

G

Guest

I've a multiview with 3 views. on view 2 the user is presented with a check
box list (items from database) at view 3 the user can review their selections
and, either post to the database or go back and amend their selections (all
selected data is held in an extensive profile including several list items).

The problem is going back from view 3 to view 2 the check Box List loses the
user checked items when using: MultiView.ActiveViewIndex = 1.

Can anyone give a pointer on how maintain the user selections when going
from view 3 to view 2?

Or how to set the checked box items selected property to true from the data
held in the profile list?
asp.net 2.0 (vb) VS2005

Any help would be great!
 
G

Guest

Does it happens only with check Box List ? or with other controls too.
Check the ViewState of the check Box List.
Is items in check Box List hardcoded or dnyamic. ? if dynamic when you are
populating ?

Regards
JIGNESH
 
G

Guest

Hi Jignesh

Other controls are fine - in view 1 ! have dropdowns etc. They retain their
selected state from view 2 to view 1.
EnableViewState of the checkBoxList and its container = True
Items in checkBoxList come from objectDataSource (sqlserver database) which
I assume loads with the page - this is the same for the dropdowns in view1.
 
G

Guest

Seems I've sorted it!

Incorrect coding of a GridView in view 3 - the databind() method was
incorrect.

Panic over!!
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top