|
[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. |
|
|
|
|
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.
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625