troubleshooting Question

ASP Checkbox Question: How do you retrieve values of a row?

Avatar of pcalabria
pcalabriaFlag for United States of America asked on
6 Comments1 Solution342 ViewsLast Modified:
Hello experts,

I have a table generated in HTML and ASP that I create on a webpage.
The table can have any number of rows.  
Each row includes a part number, quantity, and unit price.
The user selects the row(s) that he wants by checking a checkbox that appears at the end of each row.

The form is then submitted using a submit button setup to "get" a querystring to a page called MyPage.asp.

MyPage.asp simply needs to determine which part numbers, quantities, and prices were selected.

The problem that I am having is that when no checkbox is checked, nothing is sent in the querystring.  For example, if either "checked" or "not checked" was sent I could easily test each item in the collection using the index to find all the checked items, but this doesn't work because the items do not exist unless the checkbox is checked, thereby returning an out of range error.

There must be an easier way!

Can anyone help?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros