By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,091 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,091 IT Pros & Developers. It's quick & easy.

Check Box List Selected Items

P: n/a
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!
Oct 29 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"James Page" wrote:
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!
Oct 30 '07 #2

P: n/a
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.

"JIGNESH" wrote:
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

"James Page" wrote:
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!
Oct 30 '07 #3

P: n/a
Seems I've sorted it!

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

Panic over!!

"James Page" wrote:
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.

"JIGNESH" wrote:
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

"James Page" wrote:
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!
Oct 30 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.