-
Notifications
You must be signed in to change notification settings - Fork 0
/
prodotti_catalogo.aspx
executable file
·39 lines (36 loc) · 1.74 KB
/
prodotti_catalogo.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ Page Title="" Language="C#" MasterPageFile="~/Principale.master" AutoEventWireup="true" CodeFile="prodotti_catalogo.aspx.cs" Inherits="prodotti_catalogo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Corpo" Runat="Server">
<asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
<asp:Repeater ID="repCatalogo" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellpadding="2">
</HeaderTemplate>
<ItemTemplate>
<!-- intestazione -->
<tr class="sfondo">
<td colspan="2">
<%# DataBinder.Eval(Container.DataItem, "Nome") %> - <%# DataBinder.Eval(Container.DataItem, "Prezzo") %>
</td>
</tr>
<!-- corpo -->
<tr>
<td width="100" align="center" valign="top">
<img src="<%# DataBinder.Eval(Container.DataItem, "Foto") %>" id="imgFoto" width="100"
height="100" border="0" alt="Foto di <%# DataBinder.Eval(Container.DataItem, "Nome") %>" />
</td>
<td valign="top">
<p><%# DataBinder.Eval(Container.DataItem, "Descrizione")%></p>
<p>
<a href="prodotti_dettaglio.aspx?IDprodotto=<%# DataBinder.Eval(Container.DataItem, "IDprodotto") %>">
Dettagli >></a>
</p>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</asp:Content>