Control confusion

Discussion in 'ASP .Net Web Controls' started by Erik J Sawyer, Nov 23, 2003.

  1. 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
     
    Erik J Sawyer, Nov 23, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. martin f. krafft

    confusion when resetting registers

    martin f. krafft, Aug 18, 2004, in forum: VHDL
    Replies:
    2
    Views:
    470
    Paul Sereno
    Aug 19, 2004
  2. Peter Hermansson

    Procedures in testbench confusion

    Peter Hermansson, Aug 25, 2004, in forum: VHDL
    Replies:
    2
    Views:
    867
    Peter Hermansson
    Aug 25, 2004
  3. Chris

    defined() confusion

    Chris, Dec 11, 2003, in forum: Perl
    Replies:
    2
    Views:
    511
  4. Lloyd Sheen
    Replies:
    0
    Views:
    315
    Lloyd Sheen
    Feb 13, 2008
  5. Chang Min Jeon

    Access Control confusion

    Chang Min Jeon, Jan 1, 2009, in forum: Ruby
    Replies:
    0
    Views:
    99
    Chang Min Jeon
    Jan 1, 2009
Loading...

Share This Page