PagingBulletedListExtender allows alphabetic paging to the bulleted lists.
Read the below post to know how you can use the controls of AJAX Control ToolKit
http://www.dotnetissues.com/2012/07/alwaysvisiblecontrolextender-from.html
Read the below post to know how you can use the controls of AJAX Control ToolKit
http://www.dotnetissues.com/2012/07/alwaysvisiblecontrolextender-from.html
To us the PagingBulletedListExtender set the TargetControlId of this control with the bulleted list which you wants
to Page alphabetically .
See the below code
PagingBulletedList.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PagingBulletedList.aspx.cs" Inherits="PagingBulletedList" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="aspa" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<aspa:pagingbulletedlistextender ID="Pagingbulletedlistextender1" runat="server" TargetControlID="BulletedList1"></aspa:pagingbulletedlistextender><br />
<asp:BulletedList ID="BulletedList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField ="Name" />
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:dotnettrainingConnectionString2 %>"
SelectCommand="SELECT [Name] FROM [Employeedetails]"></asp:SqlDataSource>
</form>
</body>
</html>
No comments:
Post a Comment