对了,忘了附上代码了,补上补上
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource1">
<HeaderTemplate>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6" align="center"> Product List
</td>
</tr>
<tr>
<td>
product id
</td>
<td>
product name
</td>
<td>
price
</td>
<td>
catalogue
</td>
<td>
amount
</td>
<td>
manipulation
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%#Eval("productid")%>
</td>
<td>
<%#Eval("product_name")%>
</td>
<td>
<%#Eval("price")%>
</td>
<td>
<%#Eval("catalogueid")%>
</td>
<td>
<asp:TextBox ID="TextBoxamount" runat="server" Text="1" Width=40 MaxLength=6></asp:TextBox>
</td>
<td>
<asp:Button ID="Buttondetail" runat="server" Text="detail" CommandName="detail" CommandArgument='<%#Eval("productid") %>'/>
<asp:Button ID="Buttonputincart" runat="server" Text="put in cart" CommandName="put in cart" CommandArgument='<%#Eval("productid") %>'/>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>