-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathProductList.aspx
44 lines (40 loc) · 1.89 KB
/
ProductList.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
39
40
41
42
43
44
<%@ Page Language="C#" Title="Product List" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="ProductList.aspx.cs" Inherits="ProductList" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeaderContent" runat="server">
<title></title>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<style>
body {
background-color: #282828 !important;
}
.subHead {
color: #000000;
}
.blueHead {
color: #00a4cc;
}
</style>
<div>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="DataSetTableAdapters.ProductTableAdapter">
<SelectParameters>
<asp:QueryStringParameter DefaultValue="1" Name="category_FK" QueryStringField="CategoryID" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<div class="row">
<asp:Repeater runat="server" ID="itemRepeater">
<ItemTemplate>
<a href='/Product?ID=<%# Eval("Id") %>'>
<div class="card col-md-3">
<img class="card-img-top" style="width:100%" src='/Picture/<%#Eval("ImageName1") %>' alt="Card image cap">
<div class="card-block">
<h4 class="card-title"> <%#Eval("Name") %></h4>
<p class="card-text"><%# Eval("Description") %></p>
<a href='/Product?ID=<%# Eval("Id") %>' class="btn btn-primary"> $ <%# Eval("Price")%> </a>
</div>
</div>
</a>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>