Checkboxes in DataList

Discussion in 'ASP .Net Datagrid Control' started by J 2 the B, Feb 25, 2004.

  1. J 2 the B

    J 2 the B Guest

    I am building a user mangement page where you can change groups users
    are a part of.

    I have a datalist which I populate with roles (admin, manager,
    support, etc). Each role has a checkbox.

    I want to pre-select the checkboxes of the groups the user is a part
    of when the datalist is built.

    I assume I have to do something in ItemDataBound, but I'm not really
    having any success. I know I need to get a list of roles that the user
    is in (which I have). But how so I compare the complete list of user
    groups to the ones the user is subscribed to, and check the
    appropriate checkboxes?

    Any suggestions on how to do this?

    Thanks.
    J 2 the B, Feb 25, 2004
    #1
    1. Advertising

  2. Your post went unanswered. Have you resolved this issue?

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    http://tinyurl.com/3he3b
    "J 2 the B" <> wrote in message
    news:...
    > I am building a user mangement page where you can change groups users
    > are a part of.
    >
    > I have a datalist which I populate with roles (admin, manager,
    > support, etc). Each role has a checkbox.
    >
    > I want to pre-select the checkboxes of the groups the user is a part
    > of when the datalist is built.
    >
    > I assume I have to do something in ItemDataBound, but I'm not really
    > having any success. I know I need to get a list of roles that the user
    > is in (which I have). But how so I compare the complete list of user
    > groups to the ones the user is subscribed to, and check the
    > appropriate checkboxes?
    >
    > Any suggestions on how to do this?
    >
    > Thanks.
    Alvin Bruney [MVP], Mar 2, 2004
    #2
    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. Nevyn Twyll
    Replies:
    8
    Views:
    1,864
  2. Patrick Olurotimi Ige

    CheckBoxes in Datalist Question

    Patrick Olurotimi Ige, Jun 10, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    352
    Patrick Olurotimi Ige
    Jun 10, 2005
  3. Replies:
    0
    Views:
    396
  4. gangur
    Replies:
    1
    Views:
    1,554
    ProgTalk
    Feb 22, 2008
  5. Kiran Kumar Pinjala

    DataList Checkboxes

    Kiran Kumar Pinjala, Feb 8, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    98
    Kiran Kumar Pinjala
    Feb 8, 2005
Loading...

Share This Page