checkboxlist Attributes.Add

Discussion in 'ASP .Net Web Controls' started by ilona, Sep 26, 2003.

  1. ilona

    ilona Guest

    I am trying to iterate through items in the checkboxlist and add an
    attribute to checkbox. It does not work - pls help

    for (int i=0; i<chkCountryList.Items.Count; i++)

    {

    chkCountryList.Items.Attributes.Add("onclick","UnCheck();");

    }
     
    ilona, Sep 26, 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. JD
    Replies:
    5
    Views:
    11,724
    NetArchitect
    Aug 8, 2007
  2. darkpeace
    Replies:
    1
    Views:
    1,016
    darkpeace
    Jan 23, 2005
  3. Patrick.O.Ige
    Replies:
    5
    Views:
    19,179
    Patrick.O.Ige
    Jun 19, 2005
  4. P4trykx
    Replies:
    2
    Views:
    1,845
    bruce barker
    Jan 31, 2007
  5. Jerome

    CheckBoxList items attributes : apply CssStyle

    Jerome, Jul 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    1,563
    Victor Garcia Aprea [MVP]
    Jul 16, 2003
Loading...

Share This Page