check Checkbox list based on criteria

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parshupooja
    New Member
    • Jun 2007
    • 159

    check Checkbox list based on criteria

    Hey all,

    I have check box list on which is binded to one of the coulmn in table A. It is not bit column
    40
    50
    60
    70
    In another table B have value in one row named like 40, 50, 60 etc

    While loading a checkbox list I want to check if value exists in row of Table B than check box shd be checked.

    I tried getting to row value in array

    string setting = qq.ExecuteScala r().ToString();
    string[] title = setting.Split(' ,');

    i don't know what to do next.

    Thanks
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by parshupooja
    Hey all,

    I have check box list on which is binded to one of the coulmn in table A. It is not bit column
    40
    50
    60
    70
    In another table B have value in one row named like 40, 50, 60 etc

    While loading a checkbox list I want to check if value exists in row of Table B than check box shd be checked.

    I tried getting to row value in array

    string setting = qq.ExecuteScala r().ToString();
    string[] title = setting.Split(' ,');

    i don't know what to do next.

    Thanks
    just costruct a temporary datatable with those values......and pass the datatable as datasource of checkboxlist... ..execute a loop to find the value of your string array (title) one by one and add to the datatable.....

    Comment

    Working...