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 547051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:55:54+00:00 2026-05-13T10:55:54+00:00

I have a ASP.NET web page which contains a table of check boxes and

  • 0

I have a ASP.NET web page which contains a table of check boxes and a button. I need to find the IDs of all the check boxes which are checked when the button click happens. Once the list of IDs are collected, it needs to be passed on to the server. I am able to do it using jQuery and PageMethods.

How can I achieve this in the button click handler in the code behind file? i.e. the IDs of all the check boxes which are checked when button click happens.

I want to do it in code behind because the code behind file contains a few functions which create a chart and export it to PDF and the chart gets created based on the checked check boxes.

Please suggest.

cheers

  • 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-13T10:55:54+00:00Added an answer on May 13, 2026 at 10:55 am

    An alternative to the previous answers that can be used if you are not using server controls for your checkboxes or the checkboxes have been added dynamically at runtime is to iterate through the Form collection sent as part of the post back. If a check box has been checked it will be added to this collection with its id as its key and a value of “on”. If it is not checked it will not be added to the collection. To use this method you will need to ensure some kind on naming convention to allow you to identify the checkbox ids you are after:

        foreach (var key in Request.Form.AllKeys)
        {
            if (key.EndsWith("checkbox", true, null))
            {
                // If entry found then this checkbox has been checked
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have user control on a ASP.NET web page, which contains a GridView and
I have an ASP.Net web page, which uses a Master Page template. The page
I have a ASP.NET web application which has more than 100 pages. Each page
We have a Web application (ASP.NET) which displays in some page links to miscellaneous
I have a ASP.NET web page that contains many textboxes. Each textbox has a
I have a standard ASP.NET 2.0 web page with a Delete button on it.
I have an ambitious requirement for an asp.net 2.0 web page that contains a
I have an asp.net web page which is giving me some problems. I developed
I have an asp.net content form which contains a couple of textboxes. I need
I have a simple asp.net web page that contain a table with about 5

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.