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. Advertisements

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. Replies:
    0
    Views:
    873
  2. Matthew Louden
    Replies:
    1
    Views:
    7,624
    Scott M.
    Oct 11, 2003
  3. Mad Scientist Jr
    Replies:
    0
    Views:
    892
    Mad Scientist Jr
    Mar 22, 2006
  4. shapper
    Replies:
    6
    Views:
    1,215
    shapper
    Dec 26, 2007
  5. Lloyd Sheen
    Replies:
    0
    Views:
    393
    Lloyd Sheen
    Feb 13, 2008
  6. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    805
    Jonathan Wood
    Feb 2, 2010
  7. Replies:
    1
    Views:
    595
    Teemu Keiski
    Jul 2, 2003
  8. Chang Min Jeon

    Access Control confusion

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