Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Control confusion

Thread Tools

Control confusion

Erik J Sawyer
Posts: n/a
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?

Erik J Sawyer
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Control confusion Chang Min Jeon Ruby 0 01-01-2009 01:51 PM
Confusion about control name visibility in code Lloyd Sheen ASP .Net 0 02-13-2008 08:04 PM
persisting changes to a control outside a user control from the user control? Mad Scientist Jr ASP .Net 0 03-22-2006 08:02 AM
HTML Client Control versus. HTML Server Control versus. Web Server Control Matthew Louden ASP .Net 1 10-11-2003 07:09 PM
Using Table control in a custom composite control. Control does not render properly in design time. ASP .Net 0 07-01-2003 09:26 PM