Cally K

Cally K

  • 1.2k
  • 507
  • 15.4k

How to get values from repeater control rows?

Jan 23 2019 10:22 PM
Hi,
 
This is my aspx page. 
  1. <asp:Repeater ID="selected_weeks_repeater" runat="server">    
  2.              <HeaderTemplate>    
  3.         <table border="1">    
  4.             <tr>    
  5.                 <th>    
  6.                     Sheet Names Selected by User    
  7.                 </th>    
  8.             </tr>    
  9.     </HeaderTemplate>    
  10.     <ItemTemplate>    
  11.         <tr>    
  12.             <td>    
  13.                 <%# Container.DataItem %>    
  14.             </td>    
  15.         </tr>    
  16.     </ItemTemplate>    
  17.     <FooterTemplate>    
  18.         </table>    
  19.     </FooterTemplate>    
  20.         </asp:Repeater>    
how do I get the values tha are already populated into the rows of the selected_weeks_repeater. There are no controls inside the repeater control, its just enclosed with the tage. Please help, do I need to put control like Label instead?

Answers (3)