How to assign Text and 'hidden' record ID to a checkbox control?

Discussion in 'ASP .Net' started by dan, Apr 8, 2008.

  1. dan

    dan Guest

    I'd like to list multiple records from a database as checkboxes. I'd use
    record's "Name" column for checkbox Text. Ideally I'd like to assign a
    'hidden' record's ID to checkbox so I don't need to go back to the database
    to query for the ID when checkbox is clicked on.
    This is similar to what can be done with DropDownList (i.e. text and value).
    Is there a way to do that with checkboxes?

    Thanks,
    Dan
    dan, Apr 8, 2008
    #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. tshad
    Replies:
    0
    Views:
    475
    tshad
    Apr 15, 2005
  2. Rick
    Replies:
    3
    Views:
    8,089
    Alexey Smirnov
    Apr 13, 2010
  3. navin

    Assign uploaded to file to a record

    navin, Dec 26, 2008, in forum: ASP General
    Replies:
    1
    Views:
    100
    MikeR
    Dec 26, 2008
  4. Brad Melendy

    Dynamically assign value to hidden fields?

    Brad Melendy, Jul 25, 2003, in forum: Javascript
    Replies:
    2
    Views:
    113
    Lasse Reichstein Nielsen
    Jul 25, 2003
  5. SolarCanine
    Replies:
    2
    Views:
    250
    SolarCanine
    Sep 20, 2005
Loading...

Share This Page