[thelist] ASP.NET: How to do paging? (long version)

jason.handby jason.handby at corestar.co.uk
Tue Dec 6 03:24:40 CST 2005


Hi Casey,


>         b) just call BuildPagingLinks at the very end of the 
> <script runat=server> after everything else was done.  But, I 
> cou'd not figure out how to do this, either from the books or 
> from Google.  Thus my second post.
> (asp:net Call a sub from within <script>)


You could override the page's OnPreRender() function, and call your
BuildPagingLinks() function from there instead?


      Protected Overrides Sub OnPreRender(e As EventArgs)
         BuildPagingLinks(ViewState("totalPages"))

         MyBase.OnPreRender(e)
      End Sub



Jason



More information about the thelist mailing list