-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestaurantFood.aspx
61 lines (58 loc) · 5.16 KB
/
restaurantFood.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
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="restaurantFood.aspx.vb" Inherits="restaurant" %>
<%@ PreviousPageType VirtualPath="~/restaurant.aspx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 96%">
<tr>
<td
style="vertical-align: top; text-align: left; ">
<asp:Image ID="Image1" runat="server" Height="84px" Width="120px" />
<br />
<br />
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [Food] WHERE ([FCategory_Id] = @FCategory_Id)">
<SelectParameters>
<asp:QueryStringParameter Name="FCategory_Id" QueryStringField="FCID"
Type="Decimal" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
DataKeyNames="Food_Id" DataSourceID="SqlDataSource2" Height="230px"
Width="838px" AllowPaging="True" AllowSorting="True" CellPadding="4"
Font-Bold="True" Font-Size="10pt" ForeColor="Red" GridLines="None">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="Food_Id" HeaderText="ID" ReadOnly="True"
SortExpression="Food_Id" >
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:BoundField>
<asp:BoundField DataField="Name" HeaderText="Food Name" SortExpression="Name" >
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:BoundField>
<asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" >
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:BoundField>
</Columns>
<FooterStyle BackColor="Red" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<SortedAscendingCellStyle BackColor="#FDF5AC" />
<SortedAscendingHeaderStyle BackColor="#4D0000" />
<SortedDescendingCellStyle BackColor="#FCF6C0" />
<SortedDescendingHeaderStyle BackColor="#820000" />
</asp:GridView>
<br />
<asp:LinkButton ID="LinkButton5" runat="server" Font-Size="15pt"
PostBackUrl="~/restaurant.aspx">Back</asp:LinkButton>
<br />
</td>
</tr>
</table>
</asp:Content>