[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Write to bound CheckBoxList.Selected Value

Asked by wint100 in .NET, MS SQL Server

I'm using VS2008 with .NET 3.5 SP1 to create a Web App.

I have a CheckBoxList in a Wizard step that is bound to a LINQ Datasource that returns a list of email addresses from a table called EmailAddresses.

This all works fine and the data is displayed as required when the step is loaded.  Next I need to query a table called EmailRecipients. This holds a list of EmailAddresses that have been previously selected from the Email Addresses table. I need to query the Email recipients table and check the boxes where the email address matches an address in the CheckBoxList.

The EmailAddresses table holds a list of all available addresses, the EmailRecipients table holds a list of Addresses that have been previously picked from the EmailAddresses table in a previous wizard step. So the EmailRecipients table will never hold an address that isn't in the EmailAddresses table.

So to summarize, I want to keep the CheckBoxList bound to the EmailAddresses LINQ datasource, query the EmailRecipients Table in code behind, and check the boxes of the returned addresses.

Hope this makes sense.
[+][-]11/08/09 07:46 PM, ID: 25773283Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/08/09 10:20 PM, ID: 25773706Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/08/09 10:22 PM, ID: 25773711Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625