-
Notifications
You must be signed in to change notification settings - Fork 1
/
Default.aspx
147 lines (138 loc) · 8.18 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<%--ID#: 1401375
Developer: Lomar Lilly
Module: Enterprise Computing--%>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Home | Buy Software</title>
<link href="App_Theme/css/style.css" rel="stylesheet" />
<link href="App_Theme/css/bootstrap.css" rel="stylesheet" />
<script src="App_Theme/js/jquery-1.9.0.min.js"></script>
</head>
<body>
<form id="fmain" runat="server">
<div class="header">
<div class="wrap">
<div class="header_top">
<div class="logo">
<asp:HyperLink ID="hl_home" NavigateUrl="~/Default.aspx" runat="server">
<img src="App_Theme/images/logo.png" /></asp:HyperLink>
</div>
<div class="header_top_right">
<asp:HyperLink ID="hlManageProduct" NavigateUrl="~/ManageProduct.aspx" runat="server">Manage Products</asp:HyperLink>
</div>
<div class="clear"></div>
</div>
<div class="navigation">
<a class="toggleMenu" href="#">Menu</a>
<ul class="nav">
<li>
<asp:HyperLink ID="hlHome" NavigateUrl="~/Default.aspx" runat="server">Home</asp:HyperLink>
</li>
<li class="test">
<a href="#">About Us</a>
</li>
<li>
<a href="#">Contact Us</a>
</li>
</ul>
<span class="left-ribbon"></span>
<span class="right-ribbon"></span>
</div>
<div class="header_bottom">
<div class="slider-text">
<h2>THE LATEST VERSIONS
<br />
OF THE BEST SOFTWARE</h2>
<p>
✔ Hand picked software titles - only the best!<br />
✔ Tested for malware, adware and viruses
<br />
✔ No added bundles, installers or toolbars
</p>
</div>
<div class="slider-img">
<img src="App_Theme/images/slider-img.png" />
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="content">
<div class="content_bottom">
<div class="wrap">
<%--4 Left Side Category List--%>
<div class="content-bottom-left">
<div class="categories">
<ul>
<h3>Browse All Categories</h3>
<li>
<asp:LinkButton ID="lbAntiMalware" runat="server" OnClick="getAntiMalwareSoftware" Width="218px">Anti-Malware</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbBusinessAntivirus" runat="server" OnClick="getBusinessAntivirusSoftware" Width="220px">Business Antivirus</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbCompression" runat="server" OnClick="getCompressionSoftware">Backup</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbDeveloper" runat="server" OnClick="getDeveloperSoftware">Developer</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbDriver" runat="server" OnClick="getDriverSoftware">Drivers</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbFileTransfer" runat="server" OnClick="getFileTransferSoftware">File Transfer</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbMultimedia" runat="server" OnClick="getMultimediaSoftware">Multimedia</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbOfficeNew" runat="server" OnClick="getOfficeNewsSoftware">Office / News</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbNetworking" runat="server" OnClick="getNetworkingSoftware">Networking</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbSecurity" runat="server" OnClick="getSecuritySoftware">Security</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbSystemTuning" runat="server" OnClick="getSystemTuningSoftware">System Tuning</asp:LinkButton></li>
<li>
<asp:LinkButton ID="lbVPNsPrivacy" runat="server" OnClick="getVPNsPrivacySoftware">VPNs / Privacy</asp:LinkButton></li>
</ul>
</div>
</div>
<%--4---------------------------%>
<%--3 Software List Wrapper--%>
<div class="content-bottom-right">
<h3>
<asp:Label ID="_pageHeader" runat="server">Anti-Malware Software</asp:Label></h3>
<%--2 Grid View Wrapper--%>
<div class="section group">
<%--1 Grid View--%>
<asp:GridView ID="gvSoftware" CssClass="table" runat="server" AutoGenerateColumns="False" DataSourceID="sdsSoftware" Width="737px" OnSelectedIndexChanged="gvSoftware_SelectedIndexChanged">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="SoftwareImage" runat="server" Height="100" Width="80" ImageUrl='<%#"data:Image/jpg;base64," + Convert.ToBase64String((byte[])Eval("SoftwareImage")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="SoftwareName" HeaderText="Name" SortExpression="SoftwareName" />
<asp:BoundField DataField="SoftwareCost" HeaderText="Cost" SortExpression="SoftwareCost" />
<asp:BoundField DataField="SoftwareID" ReadOnly="True" SortExpression="SoftwareID" ItemStyle-CssClass="hide" />
<asp:CommandField ShowSelectButton="True" SelectText="More Information" />
</Columns>
</asp:GridView>
<%--1-------------%>
</div>
<%--2--------------------%>
</div>
<%--3--------------------------%>
</div>
</div>
</div>
<%--Control for Category ID--%>
<asp:TextBox ID="txtCategory" runat="server" Visible="False" Style="margin-top: 0px"></asp:TextBox>
<%---------------------------%>
<%--SQL Data Source--%>
<asp:SqlDataSource ID="sdsSoftware" runat="server" ConnectionString="<%$ ConnectionStrings:1401375ConnectionString %>" SelectCommand="spSoftware_SelectByCategory" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="txtCategory" DefaultValue="1" Name="categoryID" PropertyName="Text" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<%------------------%>
</form>
</body>
</html>