jQuery & Ajax Fun: Implementing a Paging Listbox


Many times in web forms we need to provide a listbox with lots of elements, A good solution is to filter and page these elements to speedup page loading and optimize DB/Network usage..

This is a complete implementation of a paging listbox using jQuery on client side and ASP.Net on server side. and should look like this..

The form web page, which also contains the JavaScript class to build the select box, of course don't forget to download the jQuery library.
<html>
<head>
<title>jQuery & Ajax Fun: Implementing a Paging Listbox</title>
<script type="text/javascript" src="JS/jquery-1.3.min.js"></script>
<script type="text/javascript">
function AjaxListBox() {
   this.source = '';
   this.divID= '';
   this.keyID= '';
   this.buttevent_event_on__ID='';
   this.lastKey= '';
   this.startup= true;
   this.minWidth=0;
   this.position [...]

Post Thanks More Tech Tips!!

Tags: HTML, Asp.net, Paging, Ajax, Javascript, jQuery, Dal, OOP

Monday, February 9th, 2009 No comments