Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:Repeater ID="Repeater1" runat="server" DataSourceID="partsID">
- <HeaderTemplate>
- <table>
- <tr bgcolor="#ffcc99">
- <th></th>
- <th>PartID</th>
- <th>Name</th>
- <th>Description</th>
- <th>Price</th>
- <th>Quantity</th>
- </tr>
- </HeaderTemplate>
- <ItemTemplate>
- <tr>
- <td><%#DataBinder.Eval(Container.DataItem, "Image")%></td>
- <td><%#DataBinder.Eval(Container.DataItem, "Part_ID")%></td>
- <td><%#DataBinder.Eval(Container.DataItem, "Name")%></td>
- <td><%#DataBinder.Eval(Container.DataItem, "Description")%></td>
- <td><%#DataBinder.Eval(Container.DataItem, "Price")%></td>
- <td><%#DataBinder.Eval(Container.DataItem, "Quantity")%></td>
- </tr>
- </ItemTemplate>
- <SeparatorTemplate>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </SeparatorTemplate>
- <FooterTemplate>
- </table>
- </FooterTemplate>
- </asp:Repeater>
- <asp:SqlDataSource ID="partsID" runat="server"
- ConnectionString="<%$ ConnectionStrings:PartsConnectionString %>"
- SelectCommand="SELECT * FROM [tParts] ORDER BY [Name]"></asp:SqlDataSource>
Add Comment
Please, Sign In to add comment