Guest User

Untitled

a guest
Mar 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.43 KB | None | 0 0
  1. <asp:Repeater ID="Repeater1" runat="server" DataSourceID="partsID">
  2.             <HeaderTemplate>
  3.                 <table>
  4.                     <tr bgcolor="#ffcc99">
  5.                         <th></th>
  6.                         <th>PartID</th>
  7.                         <th>Name</th>
  8.                         <th>Description</th>
  9.                         <th>Price</th>
  10.                         <th>Quantity</th>
  11.                     </tr>
  12.             </HeaderTemplate>
  13.             <ItemTemplate>
  14.       <tr>
  15.         <td><%#DataBinder.Eval(Container.DataItem, "Image")%></td>
  16.         <td><%#DataBinder.Eval(Container.DataItem, "Part_ID")%></td>
  17.         <td><%#DataBinder.Eval(Container.DataItem, "Name")%></td>
  18.         <td><%#DataBinder.Eval(Container.DataItem, "Description")%></td>
  19.         <td><%#DataBinder.Eval(Container.DataItem, "Price")%></td>
  20.         <td><%#DataBinder.Eval(Container.DataItem, "Quantity")%></td>
  21.       </tr>
  22.    </ItemTemplate>
  23.    <SeparatorTemplate>
  24.       <tr>
  25.          <td></td>
  26.          <td></td>
  27.          <td></td>
  28.          <td></td>
  29.       </tr>
  30.    </SeparatorTemplate>
  31.  
  32.    <FooterTemplate>
  33.        </table>
  34.    </FooterTemplate>
  35.  
  36.  
  37.  
  38.            
  39.             </asp:Repeater>
  40.             <asp:SqlDataSource ID="partsID" runat="server"
  41.                 ConnectionString="<%$ ConnectionStrings:PartsConnectionString %>"
  42.                 SelectCommand="SELECT * FROM [tParts] ORDER BY [Name]"></asp:SqlDataSource>
Add Comment
Please, Sign In to add comment