473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Check Box List Selected Items

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
3 3194
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2707
by: Neil Ginsberg | last post by:
I'm having a problem with a multi-select list box set to Simple multi-selection. If multiple items are selected and then I change the items in the list, the list positions previously selected are...
0
1813
by: Empire City | last post by:
I have an ASP.NET form with a DataGrid and Button. I want to put a RadioButtonList in a DataGrid cell. I bind it to an ArrayList which has a ListItem in the cell. The display part works fine. I...
2
2257
by: Peter | last post by:
Hello! Please, could anyone tell, is it possible to set multiple items to be selected in list control in the code? For example when the web form is loaded three items of 5 are selected in list...
3
26256
by: Stephen Adam | last post by:
Hi there, I'm sure i'm missing something really simple here, all i want to do is get the value of the selected item in a list box. Even after much fiddling about last night I still could not get...
0
7525
by: Brian Henry | last post by:
Since no one else knew how to do this I sat here all morning experimenting with this and this is what I came up with... Its an example of how to get a list of items back from a virtual mode list...
0
3214
by: Brian Henry | last post by:
Here is another virtual mode example for the .NET 2.0 framework while working with the list view. Since you can not access the items collection of the list view you need to do sorting another...
5
27361
by: =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?= | last post by:
Hello. I am reading a value from a table and trying to determine if that value exists in a list of values associated with a dropdownlist. If so, I select the value, otherwise, I don't. I haven't...
5
6705
by: Andrew Meador | last post by:
I have a form (Change Card List by Status) with a check box (cboNOT) and a list box (lstStatus). There is an Open Report button that opens a report (Report - Change Card List) which uses a query...
1
1555
by: raam | last post by:
hi I have a list box with some country names from database. when i click search button the "country" list selecteditem should be selected. but it is not. here is my code where iam using a...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.