Link to home
Start Free TrialLog in
Avatar of Ed
EdFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Asp.net Form view Pager Template First Record

How do I set the formview pager template to not show the text ' Previous record ' when it is the first record or 'Next Record/ then it is the last record.

<PagerTemplate>
        <div style="background-color: #66CCFF; color: #000000">Click below to see previous Digital Literacy Tests</div>
        <div style="float:left">
        Page: <%# fvNum.PageIndex + 1 %>
        </div>

        <div style="float:right;white-space:nowrap">
        <asp:LinkButton
            id="lnkPrevious"
            Text="Previous Test"
            CommandName="Page"
            CommandArgument="Prev"
            Runat="server" />
        |
        <asp:LinkButton
            id="lnkNext"
            Text="Next Test"
            CommandName="Page"
            CommandArgument="Next"
            Runat="server" />
        </div>
        </PagerTemplate>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ed

ASKER

Perfect