<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="ShowOperator.aspx.cs" Inherits="Admin_airtoegen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <%--<link href="../css/egen_admin.css" rel="stylesheet" type="text/css" />--%>
    <link href="../css/egen_admin.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        
        <tr>
            <td align="left">
                <table>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtOpName" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                    
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="GvOperators" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None" 
                    DataKeyNames="MobileDthOperatorDetailsID" onrowcommand="GvOperators_RowCommand">
                    <RowStyle BackColor="#EFF3FB" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" Width="300px"/>
                    <EmptyDataTemplate>
                        <table>
                            <tr>
                                <td style="background-color: Red; font-weight: bold;">
                                    No Data Available
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:TemplateField HeaderText="S.NO">
                            <ItemTemplate>
                                <%#Container.DisplayIndex+1%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="OperatorName" HeaderText="Operator Name" />
                        <asp:BoundField DataField="OperatorType" HeaderText="Operator Type" />
                        <asp:BoundField DataField="ServiceType" HeaderText="Service Type" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" CommandName="EditOperator" CommandArgument='<%# Eval("MobileDthOperatorDetailsID") %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:TemplateField Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lblopid" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MobileDthOperatorDetailsID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
