Torna al Thread
<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1"
EnableModelValidation="True">
<EmptyDataTemplate>
<table style="">
<tr>
<td>
Non è stato restituito alcun dato.</td>
</tr>
</table>
</EmptyDataTemplate>
<ItemTemplate>
<td runat="server" style="">
<asp:Label ID="ProductIDLabel" runat="server" Text='<%# Eval("ProductName") %>' />
<br />
<asp:Label ID="UnitPriceLabel" runat="server" Text='<%# Eval("UnitPrice") %>' />
<br />
<asp:Label ID="QuantityLabel" runat="server" Text='<%# Eval("Quantity") %>' />
<br />
<asp:Label ID="Total" runat="server"
Text='<%# Convert.ToInt16(Eval("Quantity"))*Convert.ToDouble(Eval("UnitPrice") %>' />
<br />
</td>
</ItemTemplate>
<LayoutTemplate>
<table runat="server" border="0" style="">
<tr ID="itemPlaceholderContainer" runat="server">
<td>
Prodotto<br />Prezzo<br />Qta<br />Totale<br />
</td>
<td ID="itemPlaceholder" runat="server">
</td>
</tr>
</table>
<div style="">
<asp:DataPager ID="DataPager1" runat="server">
<Fields>
<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True"
ShowLastPageButton="True" />
</Fields>
</asp:DataPager>
</div>
</LayoutTemplate>
</asp:ListView>