Ciao
ho un controllo repeater che uso da parecchio tempo, ora ho l'esigenza di inserire per ogni riga una text box vuota (dove andrà inserito un numero dall'utente) e un button.
Alla pressione del button dovrei richiamare un valore della riga per modificare i dati a database.

Non so come fare.

Il controllo repeater lo istanzio così:
codice:
<asp:Repeater ID="MyRepeater" runat="server">
         
         <HeaderTemplate>
        <table width="90%"  border="0" class="bordo1_gall">
          <tr>
            <td colspan="2"></td>
                       
          </tr>
                
        </HeaderTemplate>
         
         <ItemTemplate>
         
         <tr>
         <td width="65"  align="center" valign="middle" class="row_bord IM3" ><%#DataBinder.Eval(Container.DataItem, "Immagine")%></td>
        
         <td  class="row_bord">
        <table width="90%" border="0" class="testo10">
         
                  <td width="5%" class="galleria3"><%#DataBinder.Eval(Container.DataItem, "cod")%></td>
                <td width="68%" rowspan="2" class="galleria3"><%#DataBinder.Eval(Container.DataItem, "Nome")%></td>
                <td width="10%" class="galleria">Prezzo : </td>
                <td width="17%"  class="galleria2"><%#DataBinder.Eval(Container.DataItem, "Prezzo")%></td>
              </tr>
              <tr>
                <td class="galleria2"></td>
                <td class="galleria2"></td>
                <td class="galleria2"></td>
              </tr>
              <tr>
                <td class="galleria2"></td>
                <td width="68%" class="galleria3"><%#DataBinder.Eval(Container.DataItem, "Descrizione")%></td>
                <td class="galleria">Qta:</td>
                <td class="galleria2">TEXT BOX + BOTTONE</td>
              </tr>
           </table>
           </td>
        
          </tr>
         
         <%--<%#DataBinder.Eval(Container.DataItem, "Descrizione")%>--%>
        </ItemTemplate>        
                
         <FooterTemplate >
           
         <tr>
            <td height="10" class="row_bord"></td>
            <td height="10" class="row_bord"></td>
          </tr>
        </table>
         
         
        </FooterTemplate>
          
         </asp:Repeater>
Il vb lo prendo da una DataTableCollection
e poi
dt = RicercaProdotti("", "")
MyRepeater.DataSource = dt.Item(0)
MyRepeater.DataBind()



Potete aiutarmi ad inserire la text box ed il button e a capire come recuperare poi la riga alla pressione del button.

Grazie a tutti.