title: Get Values Inside ItemTemplate of ListItem
body: <p>I am trying to get the values coming from an <code>ItemTemplate</code>inside my <code>ListView1</code> control.</p>
  
  <pre><code>&lt;ItemTemplate&gt;
      &lt;asp:Label ID="Label1" runat="server" Text="test message" /&gt;
      &lt;asp:RadioButtonList ID="RadioButtonList1" runat="server" 
          RepeatDirection="Horizontal"&gt;
              &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
              &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
              &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt;
              &lt;asp:ListItem&gt;4&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="5"&gt;
      &lt;/asp:ListItem&gt;
      &lt;/asp:RadioButtonList&gt;
  &lt;/ItemTemplate&gt;
  
  protected void btnSubmit_Click(object sender, EventArgs e)
  {   
      int score = 0;
          foreach (ListViewItem item in RadioButtonList1.Items)
          {
              ListViewDataItem theValue = RadioButtonList1.Items[0];
              RadioButtonList myValue = (RadioButtonList)theValue.FindControl("RadioButtonList1");
  
              score += int.Parse(myValue.SelectedItem.Value);
      }
      // display score
  }
  </code></pre>
  
  <p>Any suggestions?</p>