-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddProducts.aspx
More file actions
76 lines (55 loc) · 2.8 KB
/
AddProducts.aspx
File metadata and controls
76 lines (55 loc) · 2.8 KB
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddProducts.aspx.cs" Inherits="ABCSAMPLE.AddProducts" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
body {
text-align: center;
background-color:darkseagreen;
}
#main {
margin-left: auto;
margin-right: auto;
text-align: left;
width: 100%;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class ="#main">
<asp:Label ID="lblName" runat="server" style="display:inline;text-align:center;" Text="Product Name:"></asp:Label>
<asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
<p>
<asp:Label ID="lblCompany" runat="server" Text="Product Description:"></asp:Label>
<asp:TextBox ID="txtProdDescription" runat="server" Height="28px"></asp:TextBox>
</p>
<p>
<asp:Label ID="lblNumber" runat="server" Text="Product Price:"></asp:Label>
<asp:TextBox ID="txtProdPrice" runat="server"></asp:TextBox>
</div>
<p>
<asp:Calendar ID="UserCalendarDate" runat="server" Width="994px"></asp:Calendar>
</p>
<p>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ProductID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="ProductID" HeaderText="ProductID" InsertVisible="False" ReadOnly="True" SortExpression="ProductID" />
<asp:BoundField DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" />
<asp:BoundField DataField="ProductDescription" HeaderText="ProductDescription" SortExpression="ProductDescription" />
<asp:BoundField DataField="ProductPrice" HeaderText="ProductPrice" SortExpression="ProductPrice" />
<asp:BoundField DataField="DateSelected" HeaderText="DateSelected" SortExpression="DateSelected" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [ProductID], [ProductName], [ProductDescription], [ProductPrice], [DateSelected] FROM [Products]"></asp:SqlDataSource>
</p>
<p>
<asp:Button ID="btnPopulate" runat="server" Text="Save" ToolTip="S" OnClick="btnPopulate_Click" />
</p>
<p>
<asp:Button ID="btnLogout" runat="server" OnClick="btnLogout_Click" Text="Logout" Width="155px" />
</p>
</form>
</body>
</html>