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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:15:57+00:00 2026-05-10T18:15:57+00:00

I have this CheckBoxList on a page: <asp:checkboxlist runat=server id=Locations datasourceid=LocationsDatasource datatextfield=CountryName datavaluefield=CountryCode />

  • 0

I have this CheckBoxList on a page:

<asp:checkboxlist runat='server' id='Locations' datasourceid='LocationsDatasource'    datatextfield='CountryName' datavaluefield='CountryCode' /> 

I’d like to loop through the checkbox elements on the client using Javascript and grab the value of each checked checkbox, but the values don’t appear to be available on the client side. The HTML output looks like this:

<table id='ctl00_Content_Locations' class='SearchFilterCheckboxlist' cellspacing='0' cellpadding='0' border='0' style='width:235px;border-collapse:collapse;'> <tr>     <td><input id='ctl00_Content_Locations_0' type='checkbox' name='ctl00$Content$Locations$0' /><label for='ctl00_Content_Locations_0'>Democratic Republic of the Congo</label></td> </tr><tr>     <td><input id='ctl00_Content_Locations_1' type='checkbox' name='ctl00$Content$Locations$1' /><label for='ctl00_Content_Locations_1'>Central African Republic</label></td> </tr><tr>     <td><input id='ctl00_Content_Locations_2' type='checkbox' name='ctl00$Content$Locations$2' /><label for='ctl00_Content_Locations_2'>Congo</label></td> </tr><tr>     <td><input id='ctl00_Content_Locations_3' type='checkbox' name='ctl00$Content$Locations$3' /><label for='ctl00_Content_Locations_3'>Cameroon</label></td> </tr><tr>     <td><input id='ctl00_Content_Locations_4' type='checkbox' name='ctl00$Content$Locations$4' /><label for='ctl00_Content_Locations_4'>Gabon</label></td> </tr><tr>     <td><input id='ctl00_Content_Locations_5' type='checkbox' name='ctl00$Content$Locations$5' /><label for='ctl00_Content_Locations_5'>Equatorial Guinea</label></td> </tr> 

The values (‘cd’, ‘cg’, ‘ga’, etc.) are nowhere to be found. Where are they? Is it even possible to access them on the client, or do I need to build this checkboxlist myself using a repeater or something?

  • 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. 2026-05-10T18:15:58+00:00Added an answer on May 10, 2026 at 6:15 pm

    Stored in ViewState, you cannot access them on the client without some hacking.

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

Sidebar

Related Questions

Consider this scenario: <asp:CheckBoxList> in a master page. the goal is to have all
I have an <asp:CheckBoxList> using RepeatLayout=Flow in my page I dynamically assign values to.
I have an ASP.NET server control that inherits from CheckBoxList that renders the controls
ASP.NET and C#. I'd like to have a CheckboxList with a Select All item.
I have this line in a javascript block in a page: res = foo('<%=
I'd like to have X number of Ajax panels on my list page which
I have two radiobuttonlist and one checkboxlist on the page. Ideally based on the
I have asp.net checkboxlist control that bounded to a data source so the number
I have a number of ASP.NET validators on my page of various types, some
I have created a custom server control, deriving from System.Web.Contols.CheckBoxList to customize how a

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.