This control is used to apply paging for bulleted list control. This control has only one important property Target controls. Bulleted list control to extend using the paging Bulleted List Extender. Example The following example demonstrates how to use the paging Bulleted ListExtender control Add a page to the website and then take a ToolkitScriptManager and a BulletedList control and set ID of the BulletedList control as B2. Within the page load event write the following code to get employees names from the table Emp and display them in BulletedList control PageLoad : { sqlconnection cn = new sqlconnection(“server=Nikhil;database=Mydb;UserId=sa;password=123”); sqlDataAdapter Da= new sqlDataAdapter(“select Ename from EMP order by Ename”,cn); Dataset DS= new Dataset(); Da.fill(Ds,”Emp”); BL.Datasource=DS.Table[“EMP”]; BL.DataTextfiled=”Ename”; BL.DataBind(); }} Within HTML source of the page Drag & Drop a paging Bulleted listExtender and set its TargetControlID property to the ID of Bulleted list that is BL. At runtime employees name are displayed in BulletedList by dividing them into pages based on Alphabets with which the employee name starts.
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.