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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:19:49+00:00 2026-05-31T15:19:49+00:00

How can I get the values from checkboxes that are added by JavaScript, regardless

  • 0

How can I get the values from checkboxes that are added by JavaScript, regardless whether the checkboxes are checked or not?

These checkboxes are created by JavaScript client side, their values will represent some data which will be saved to the database. That’s why I need to get at them server side.

  • 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-31T15:19:50+00:00Added an answer on May 31, 2026 at 3:19 pm

    You need to make sure that these checkboxes, when created on the client side with Javascript, have a name attribute assigned so that they are submitted in the Request.

    For example:

    <input type="checkbox" id="mycheck" name="mycheck" />
    

    When the form is submitted, you can access the checkbox by looking at the request params as so:

    //will probably say "on" or "checked", not sure.
    string mycheckbox= HttpContext.Current.Request.Params["mycheck"];
    

    Note that you will only see in the request parameters, the checkboxes that are checked off. If you create 5 checkboxes and only one is checked off, only the one checked off will be present in the Params collection

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

Sidebar

Related Questions

How can I get the values from a dynamically created checkbox group using asp
Can someone please let me know how to get values from several input fields?
How can I get an array of values from an associative array ? Associate
Can anyone tell me how to get and display the biggest values from a
Basically I have a set of checkboxes that are dynamically created from view data
I've already tried everything i know, but still can't get my checkboxlist checked values.
How can I get this list of checkboxes to be added to a div
I have a form field (a series of checkboxes) that's being created dynamically from
In Python I can use get method to get value from an dictionary without
How can I get a value from a preprocess function to template.php, in 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.