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

  • Home
  • SEARCH
  • 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 3302490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:51:26+00:00 2026-05-17T20:51:26+00:00

I have four checkboxes in my form. I have string variable called CheckedString. If

  • 0

I have four checkboxes in my form. I have string variable called “CheckedString”. If i check the first checkbox “A” must be assigned to “CheckedString”. If i select both first and second checkbox at a time. “AB” must be assigned to “CheckedString”. If i select third and fourth checkbox “CD” must be assigned to “CheckedString”.So that several combination exists. How to implement this in C sharp. Please help?

  • 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-17T20:51:27+00:00Added an answer on May 17, 2026 at 8:51 pm

    Pseudocode since my VS2008 is currently in a “hosed” state and I can’t check:

    string CheckedString = ""
    if checkbox a is set:
        CheckedString += "A"
    if checkbox b is set:
        CheckedString += "B"
    if checkbox c is set:
        CheckedString += "C"
    if checkbox d is set:
        CheckedString += "D"
    

    Voila! There you have it. You simply append the value for each checkbox in order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a select menu with about four options. The first option of the
Suppose I have four check-boxes in a form Check-a,Check-b,Check-c,Check-d. Check-a and Check-b are already
I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController
I have four product gallery with the possibility to check the detail of each
I have four input boxes. If the user fills the first box and clicks
I have four tables each with its own form, all these table share same
I have a form with 4 groups of checkboxes used to refine search results.
I have four fieldsets of checkboxes. Each fieldset is a timeslot (12-1, 1-2, 2-3,
I have a JTable with four columns, the first one containing either a number
I have four check boxes like this, <asp:CheckBoxList ID=CheckBoxList1 runat=server onselectedindexchanged=CheckBoxList1_SelectedIndexChanged Width=190px> <asp:ListItem>Programming Contests</asp:ListItem>

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.