Ajax Paging BulletList Extender

Hello Friends,

Have you ever tried to use PagingBulletListExtender it's awesome. How I find it out I was trying to populate my State List in Order by Indexing, I used coding and events for every state name and then did it.

But here is the simple solution, nothing to do just add your PagingBulletedListExtender control in your page and few lines in .cs page as below

.aspx page
cc1:PagingBulletedListExtender
ID="PagingBulletedListExtender1"
runat="server"
TargetControlID="BulletedList1"

cc1:PagingBulletedListExtender>
asp:BulletedList
ID="BulletedList1"
runat="server"
ForeColor="DodgerBlue"

asp:BulletedList

.cs page

DataTable dt = objDAL.getDataTable("select StateId, StateName from StateMaster");

BulletedList1.DataSource = dt;
BulletedList1.DataTextField = "StateName";
BulletedList1.DataValueField = "StateId";
BulletedList1.DataBind();

Enjoy Programming,
ved

Comments