DataList
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="d" RepeatColumns="3" CellPadding="20" runat="server">
<ItemTemplate>
<h3><asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>'/></h3>
<asp:Image ImageUrl='<%# Eval("title_id", "Images/{0}.gif") %>' runat="server" />
<b>ID:</b><asp:Label ID="title_idLabel" runat="server" Text='<%# Eval("title_id") %>'/><br />
<b>Type:</b><asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' /><br />
<b>Price:</b> $<asp:Label ID="priceLabel" runat="server" Text='<%# Eval("price") %>' /><br />
<asp:TextBox TextMode="MultiLine" Rows="6" Columns="40" ID="notesLabel" Text='<%# Eval("notes") %>' runat="server" /><br />
</ItemTemplate>
</asp:DataList>
</div>
</form>
</body>
</html>