Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 681947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:32:24+00:00 2026-05-14T01:32:24+00:00

I have two checkboxes (Recommended and Others) which have peoples names (concatenated, i.e. John

  • 0

I have two checkboxes (Recommended and Others) which have peoples names (concatenated, i.e. John Smith is one item). I want to alphabetize the selected members of each list into one. How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:32:24+00:00Added an answer on May 14, 2026 at 1:32 am

    An ASP.NET implementation with three checkboxlist controls (chkRecommended, chkOthers, chkCombined)

    var listItems = (from ListItem listItem in chkRecommended.Items
                     where listItem.Selected
                     select listItem)
                    .Union(from ListItem listItem in chkOthers.Items
                           where listItem.Selected
                           select listItem)
                    .OrderBy(listItem => listItem.Text);
    
    chkCombined.Items.Clear();
    foreach (ListItem listItem in listItems)
        chkCombined.Items.Add(listItem);
    

    If you just meant a list of the values rather than another control, you can modify the original query I provided or extend it like so

    var listValues = listItems.Select(listItem => listItem.Value);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code, I have two checkboxes and want to keep one disabled
I have two tables first one consist of id`s which are associated with names
I have two checkboxes. I need to check that at least one of them
I have two CheckBoxes and a TextBox. I want to TextBox to have IsEnabled=False
I have two checkboxes and one of the checkboxes must be checked. I can
I have two checkboxes . What I need is when someone checks one of
I have two checkboxes A and B. I want B to be disabled when
i have 5 checkboxes in my vb.net webform i want when two checkboxes are
I have two columns one for id & other for checkboxes. i have taken
I have two checkboxes with different names: <input type=checkbox name=checkbox1 value=checkbox1> <input type=checkbox name=checkbox2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.