<%@ control language="VB" autoeventwireup="false" inherits="Pager, App_Web_pager.ascx.6bb32623" %>
<script language="javascript" type="text/javascript">
    function ValidatePagenumbertext() {
        if ((document.getElementById("<%=txtPageNumber.ClientID%>").value).length == 0) {
           // alert("The textbox should not be empty");
            document.getElementById("<%=txtPageNumber.ClientID%>").value = 1;
            return false;
        }
    }

    function ValidateInt(txt) {
        var msg = txt.value;
        var w;
        var indx = msg.indexOf(".");
        var ind;
        for (w = 0; w < msg.length; w++) {
            ind = msg.substring(w, w + 1);
            if (ind < "0" || ind > "9") {
                msg = msg.substring(0, w);
                txt.value = msg;
                break;
            }
        }
    }


</script>
<div id="divPager" runat="server" class="Pagination">
    <table>
        <tr>
            <td id="tdPageSizer"  runat="server">
                <span class="fl">Show Rows:</span>
                <asp:DropDownList ID="ddlPagerGridSize" runat="server"  CssClass="Select"
                    AutoPostBack="True" style="width:39% ! important">
                    <asp:ListItem>40</asp:ListItem>
                    <asp:ListItem>80</asp:ListItem>
                    <asp:ListItem>160</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td id="tdPageNumber" runat="server">
                <span class="fl">Page:</span>
                <asp:TextBox ID="txtPageNumber" ClientIDMode="AutoID" onKeyUp="ValidateInt(this)" CssClass="Input30" Style="text-align: center; width:22px"
                    runat="server"></asp:TextBox>
            </td>
            <td>
                <span class="fl">of</span>
                <asp:Label ID="lblTotalPages" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <asp:Button ID="BtnSerchPage" Width="30px" runat="server" ToolTip="Previous" OnClientClick="javascript:ValidatePagenumbertext(); return"
                    CausesValidation="False" CssClass="btnSave" Text="Go" />
            </td>
            <td>
                <asp:Button ID="btnFirst" runat="server" CssClass="btnSave" OnClick="btnFirst_Click"
                    Text="<<" ToolTip="First" Width="30px" CausesValidation="False" />
            </td>
            <td>
                <asp:Button ID="btnPrev" runat="server" OnClick="btnPrev_Click" ToolTip="Previous"
                    CausesValidation="False" Width="15px" CssClass="btnSave"  Text="..." />
            </td>
            <td style="font-size:8.5px"  >
                <asp:Repeater ID="rptPager" runat="server" ClientIDMode="AutoID">
                    <ItemTemplate>
                        <asp:LinkButton CausesValidation="false" ID="lnkPage" runat="server" CommandName="Apply"
                            Text='<%#Eval("Value") %>' CommandArgument='<%# Eval("Value") %>' Enabled='<%# Eval("Enabled") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </td>
            <td>
                <asp:Button ID="btnNext" runat="server" OnClick="btnNext_Click" Style="background: none!important;
                    vertical-align: bottom!important; color: #0485a3!important" CssClass="btnSave" ToolTip="Next"
                    CausesValidation="False" Width="15px" Text="..." />
            </td>
            <td>
                <asp:Button ID="btnLast" runat="server" OnClick="btnLast_Click" CssClass="btnSave"
                    ToolTip="Last" CausesValidation="False" Width="30px" Text=">>" />
            </td>
        </tr>
    </table>
    <%--<asp:HiddenField ID="PagerMaxPageIndex" runat="server"  />--%>
    <%--<asp:HiddenField ID="PagerRecordCount" runat="server"  />--%>
    <%--<asp:HiddenField ID="Pagercount" runat="server"  />--%>
    <%--  <asp:HiddenField ID="PreviousPage" runat="server"  />
         <asp:HiddenField ID="NextPage" runat="server"  />--%>
</div>
