title: accessing checkbox inside listview?
body: <p>i have a group of listviews with a checkbox in each listview as:</p>
  
  <pre><code>&lt;telerik:RadListView Skin="Vista" ID="RadListView3" DataSourceID="SqlDataSource_subentry"
                                      runat="server"  ItemPlaceholderID="EmployeesContainer" DataKeyNames="ID"&gt;
                                      &lt;LayoutTemplate&gt;
                                          &lt;fieldset id="FieldSet1"&gt;
                                              &lt;legend&gt;Issues&lt;/legend&gt;
                                              &lt;asp:PlaceHolder ID="EmployeesContainer" runat="server" &gt;&lt;/asp:PlaceHolder&gt;
  
                                              &lt;br /&gt;
                                              &lt;br /&gt;                                                
                                          &lt;/fieldset&gt;
                                      &lt;/LayoutTemplate&gt;
                                      &lt;ItemTemplate&gt;
                                          &lt;div style="width:200px; height:165px; -webkit-border-radius: 20px;-moz-border-radius: 20px; border-radius: 20px;
                                              border:2px solid black; background-color:#00FFFF; text-align:center; margin-top:20px; margin-bottom:10px;  
                                               margin-left:20px; "&gt;
                                               &lt;br /&gt;
                                               &lt;div style=" width:190px; height:auto; font-size:small;color:#000099; text-align:left; margin-left:12px;"&gt;&lt;%#Eval("Worked_Project")%&gt;      
                                                 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;   
                                                 &lt;label id="Label1" runat="server"&gt;&lt;%# Eval( "ID" ) %&gt;&lt;/label&gt;
                                                   &lt;asp:CheckBox ID="MyCheckBox" runat="server"  Text=&lt;%# Eval( "ID" ) %&gt;/&gt;&lt;/div&gt;
                                               &lt;div style="width:190px; height:auto; font-size:small;color:black;text-align:center; padding-left:2px; margin-left:5px;" &gt;&lt;%# DataBinder.Eval(Container.DataItem, "Week_Ending", "{0:d/M/yyyy }")%&gt;&lt;/div&gt;
                                               &lt;div style=" width:190px; height:75px; font-size:large; color:#000099; text-align:center; "&gt;&lt;%#Eval("Activity")%&gt; &lt;/div&gt;
                                               &lt;div style=" width:190px; height:auto; font-size:small;color:black; text-align:left;  margin-left:12px; margin-bottom:5px; "&gt;&lt;%#Eval("UserId")%&gt; &lt;/div&gt;
  
                                           &lt;/div&gt;
  
  
                                      &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p>on a button click i want to pick the id assocaiated with a particular checkbox as:</p>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
  {
  
  
      foreach (Control   ctl in RadListView3.Controls)
      {
  
  
          CheckBox chk = (CheckBox)ctl.FindControl("MyCheckBox");
  
         if (chk.Checked== true)
              {
  
                  string value = chk.Text.ToString();
                  Session["id"] = value.ToString();
                  Label2.Text = Session["id"].ToString();
              }
  
       }
  
  
  
  
  }
  </code></pre>
  
  <p>but it is giving error on line of code:</p>
  
  <pre><code> if (chk.Checked== true)
  </code></pre>
  
  <p>and the error is</p>
  
  <pre><code>Object reference not set to an instance of an object.
  </code></pre>
  
  <p>plzz help me out</p>