Is there any way I can change page numbering using C# instead of using ASP.NET as happened here,
<asp:GridView ID="gvData"
runat="server"
AllowPaging=true
PageSize=5
PagerSettings-PageButtonCount=20 >
</asp:GridView>