<%@ Page Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true"
    CodeFile="InactiveAgent.aspx.cs" Inherits="Distributor_InactiveAgent" Title="e Gen Service" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/drope.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
       
        <tr>
            <td style="height: 10px" colspan="4">
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td style="float: none; text-align: right; padding: 0 0 0 0px">
                            <asp:Button ID="btnNew" runat="server" class="button" Text="AddAgent" 
                                onclick="btnNew_Click" />&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;<asp:Button ID="btnActive" runat="server" class="button" 
                                Text="Active" onclick="btnActive_Click" />
                            
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 10px; text-align:center" colspan="7"><asp:Label ID="lblerror" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        
        <tr>
            <td colspan="7">
                 <asp:GridView ID="gvActiveAgent" runat="server" AutoGenerateColumns="false" Width="100%" 
                        AllowPaging="true" PageSize="10" DataKeyNames="COURENTLEVEL" GridLines="None" >
                        <HeaderStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <RowStyle Height="10px" /> 
                        <Columns>
                        <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkbox" runat="server" />
                        </ItemTemplate>
                        </asp:TemplateField>
                            <asp:TemplateField HeaderText="S NO.">
                                <ItemTemplate>
                                    <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Agent Id" >
                                <ItemTemplate>
                                    <asp:Label ID="lblCurrentLevel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.USERNAME") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="COURENTLEVEL" HeaderText="Courrentlevel" Visible="false" />
                            <asp:BoundField DataField="OFFICECITY" HeaderText="City" />
                            <asp:BoundField DataField="OFFICESTATE" HeaderText="State" />
                            <asp:BoundField DataField="MOBILENO" HeaderText="Mobile No." />
                            <asp:BoundField DataField="EMAILID" HeaderText="Email Id" />
                            <asp:BoundField DataField="TOTALCASH" HeaderText="Total Fund" />
                            <asp:BoundField DataField="BALANCE" HeaderText="Balance" />
                            
                        </Columns>
                    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="height: 30px">
            </td>
        </tr>
    </table>
</asp:Content>
