<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Searches.master" AutoEventWireup="true" CodeBehind="PartAdd.aspx.cs" Inherits="PirTickets.PartAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table><tr><td>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" AutoGenerateSelectButton="True" 
            CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource1" 
            EmptyDataText="You have not yet added any parts" ForeColor="#333333" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" ShowFooter="True" 
            Width="750px" onrowdeleted="GridView1_RowDeleted">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" 
                    ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="partno" HeaderText="partno" 
                    SortExpression="partno" />
                <asp:BoundField DataField="partname" HeaderText="partname" 
                    SortExpression="partname" />
                <asp:BoundField DataField="description" HeaderText="description" 
                    SortExpression="description" />
                <asp:BoundField DataField="quant" HeaderText="quant" SortExpression="quant" />
                <asp:BoundField DataField="reorder" HeaderText="reorder" 
                    SortExpression="reorder" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
</td></tr>
<tr><td>
    <asp:Label ID="Label1" runat="server" Text="Selected Part:"></asp:Label>
    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
    <asp:Label ID="Label3" runat="server" Text="Quantity:"></asp:Label>
    <asp:TextBox ID="txtQuant" runat="server" Height="20px" Width="57px">1</asp:TextBox>
    <asp:Button ID="bAdd" runat="server" Text="Add" Height="25px" 
        onclick="bAdd_Click" Width="58px" />
    </td></tr>
</table>        
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
            SelectCommand="SELECT [id], [partno], [partname], [description], [quant], [reorder] FROM [partsstore]">
        </asp:SqlDataSource>
       
</asp:Content>
