Torna al Thread

<asp:Repeater id="rptRighe" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>Descrizione</th> <th>IVA</th> <th>Quantita</th> <th>Importo</th> <th>Imponibile</th> <th>Totale</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:TextBox ID="tbDescrizione" Width="350" Text='<%# DataBinder.Eval(Container.DataItem, "DescrizioneRiga") %>' runat="server"></asp:TextBox> </td> <td> <asp:DropDownList ID="ddlAliquota" runat="server" DataSourceID="sdsAliquote" DataValueField="ID" DataTextField="DescrizioneAliquota"> </asp:DropDownList> </td> <td> <asp:TextBox ID="tbQuantita" Width="50" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="tbImporto" Width="100" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="tbImponibile" Width="100" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="tbTotale" Width="100" runat="server"></asp:TextBox> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> nel page_load del codebehind.... rigaFattura.Add(new RigaFattura(....)); rigaFattura.Add(new RigaFattura(....)); rptRighe.DataSource = rigaFattura; rptRighe.DataBind();
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5