title: Trying to set checkboxes to checked in asp:Repeater based on an iteration of two lists
body: <p>So, I have two lists with the same type of objects. One of the list contains every single object of that type from the database. The other list contains only objects that have a specific ID.</p>
  
  <p>I have a repeater which lists all objects from the first list in one column, and checkboxes for each item in the second column. What I'm trying to do now is to automatically check the checkboxes for items that are members in both lists, meaning that if an item in list2 also exists in list1, then the checkbox next to that item in the Table should be checked. </p>
  
  <p>I've been searching for a solution for hours now with no luck, and I'm hoping someone can help me with this.</p>
  
  <p>Thanks in advance!</p>
  
  <p>This is the frontend code:</p>
  
  <pre><code>&lt;asp:Repeater runat="server" ID="BegreppRepeater"&gt;
      &lt;HeaderTemplate&gt;
          &lt;table class="adminObjectsTable"&gt;
              &lt;th&gt;Begrepp&lt;/th&gt;
              &lt;th&gt;&lt;/th&gt;
  
      &lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
  
          &lt;tr&gt;
              &lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem, "name") %&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="checkbox" name="checkbox1" value=""&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/ItemTemplate&gt;
      &lt;FooterTemplate&gt;
          &lt;/table&gt;
      &lt;/FooterTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>