-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default.aspx
37 lines (36 loc) · 2.77 KB
/
Default.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
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="container">
<div class="row-fluid">
<div class="col-md-2">
<ul class="nav nav-list bs-docs-sidenav affix">
<asp:Repeater ID="Repeater2" runat="server" DataSourceID="ProductCategorySubmenu">
<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("CategoryName")%>' NavigateUrl='<%# "Default.aspx?category=" + CStr(Eval("MenuGroup")) + "&category_id=" + CStr(Eval("CategoryID"))%>'></asp:HyperLink>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
<div class="col-md-10">
<asp:Label ID="adTitleLabel" Runat="server" Text='<%# Eval("Title") %>'></asp:Label>
<asp:GridView CssClass="table table-striped" GridLines="None" ID="GridView1" runat="server" DataSourceID="ProductInventory" AutoGenerateColumns="False" DataKeyNames="id">
<Columns>
<asp:BoundField DataField="ProductCode" HeaderText="Product Code" SortExpression="ProductCode" />
<asp:BoundField DataField="ProductName" HeaderText="Product Name" SortExpression="ProductName" />
<asp:BoundField DataField="ProductCost" HeaderText="Product Cost" SortExpression="ProductCost" />
<asp:BoundField DataField="StockQTY" HeaderText="Stock Quantity" SortExpression="StockQTY" />
<asp:TemplateField HeaderText="Available Actions">
<ItemTemplate>
<asp:Hyperlink ID="ViewProduct" runat="server" Text="Product Details" NavigateUrl='<%# "ProductView.aspx?category=" + Request.QueryString("category") + "&product_code=" + CStr(Eval("ProductCode"))%>' Font-Size="Small"></asp:Hyperlink>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</div>
</div>
<asp:SqlDataSource ID="ProductCategorySubmenu" runat="server" ConnectionString="<%$ ConnectionStrings:DatabaseConnection %>" ProviderName="<%$ ConnectionStrings:DatabaseConnection.ProviderName %>"></asp:SqlDataSource>
<asp:SqlDataSource ID="ProductInventory" runat="server" ConnectionString="<%$ ConnectionStrings:DatabaseConnection %>" ProviderName="<%$ ConnectionStrings:DatabaseConnection.ProviderName %>"></asp:SqlDataSource>
</asp:Content>