Control confusion

E

Erik J Sawyer

I am creating a feedback survey for internal users. The
questions are stored in SQL Server, and presented as
checkboxes at runtime (for flexibility, I use individual
checkboxes, not a checkboxlist). I create each checkbox
with a unique sequential ID, and use a hidden field to
store the number of questions.

The problem I'm having is this: at postback, I know how
many questions there were at form creation (via the
Hidden control). I can even get the checkbox check
values from the Form collection. However, I can't
correlate the checkboxes back to the question ID in SQL
Server. I've tried using a custom value in the
Attributes collection of the checkbox, but I can't figure
out how to retrieve it at postback.

Any suggestions? Am I taking the wrong approach?

Thanks,
Erik J Sawyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top