<%@ page title="Breed Master" language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="BreedMaster, App_Web_fzfkhksa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="main-content container-fluid">
        <div class="page-title">
            <h3>BreedMaster</h3>
        </div>
        <section class="section">
            <div class="row bspace">
                <div class="col-md-8">
                    <div class="divider">
                        <div class="divider-text">Breed Details</div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4">
                            <label class="label">Species Type</label>
                        </div>
                        <div class="col-md-8">
                            <asp:DropDownList ID="ddlSpeciesType" runat="server" CssClass="form-control" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="ddlSpeciesType_SelectedIndexChanged">
                                <asp:ListItem Selected="True" Value="0" Text="Select"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4">
                            <label class="label">Breed Name</label>
                        </div>
                        <div class="col-md-6">
                            <asp:TextBox ID="txtBreedName" runat="server" CssClass="form-control" placeholder="Breed Name"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <asp:Button ID="btnAdd" runat="server" Text="Add" CssClass="btn btn-primary float-right" OnClick="btnAdd_Click" />
                        </div>
                    </div>
                    <div class="row">
                        <asp:GridView ID="GridBreeds" runat="server" AutoGenerateColumns="False" CssClass="table table-responsive table-bordered" OnRowDeleting="OnRowDeleting" OnSelectedIndexChanged="GridBreeds_SelectedIndexChanged">
                            <Columns>
                                <asp:CommandField SelectText="<<" ShowSelectButton="true" />
                                <asp:BoundField DataField="BreedID" HeaderText="BreedID" SortExpression="BreedID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" >
<HeaderStyle CssClass="hideGridColumn"></HeaderStyle>

<ItemStyle CssClass="hideGridColumn"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="Breed" HeaderText="Breed" SortExpression="Breed" />
                                <asp:BoundField DataField="SrNo" HeaderText="SrNo" SortExpression="SrNo" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" >
<HeaderStyle CssClass="hideGridColumn"></HeaderStyle>

<ItemStyle CssClass="hideGridColumn"></ItemStyle>
                                </asp:BoundField>
                                <asp:CommandField SelectText="X" ShowDeleteButton="True" DeleteText="X" />
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div class="row form-group">
                        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Label ID="lblID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblSrNo" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblUserID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Green"></asp:Label>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-6 float-md-right">
                            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn btn-primary" OnClick="btnSave_Click" />
                            <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="btn btn-primary" OnClick="btnReset_Click" />
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="divider">
                        <div class="divider-text">Breed List</div>
                    </div>
                    <div class="row">
                        <asp:GridView ID="GridSpecies" runat="server" AutoGenerateColumns="false" CssClass="table table-responsive table-bordered" OnSelectedIndexChanged="GridBreedMaster_SelectedIndexChanged">
                            <Columns>
                                <asp:CommandField SelectText="<<" ShowSelectButton="true" />
                                <asp:BoundField DataField="SpeciesID" HeaderText="SpeciesID" SortExpression="SpeciesID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="Species" HeaderText="Species" SortExpression="Species" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </section>
    </div>
</asp:Content>

