ListSearchExtender and ListBox in asp.net ajax

ListSearchExtender and ListBox
ListSearchExtenderListBox.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html>

<script runat="server">
    
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Ajax ListSearchExtender and ListBox - How to use in asp.net ajax</title>
    <style type="text/css">
        .PromptCSS
        {
            color:Snow;
            font-size:large;
            font-style:italic;
            font-weight:bold;
            background-color:DeepPink;
            font-family:Courier New;
            border:solid 1px Pink;
            height:28px;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Orchid; font-style:italic;">Ajax ListSearchExtender Example: How To Use ListBox</h2>
        <hr width="550" align="left" color="SandyBrown" />
        <asp:ScriptManager 
            ID="ScriptManager1"
            runat="server"
            >
        </asp:ScriptManager>
        <cc1:ListSearchExtender 
            ID="ListSearchExtender1"
            runat="server"
            TargetControlID="ListBox1"
            PromptCssClass="PromptCSS"
            >
        </cc1:ListSearchExtender>
        <asp:SqlDataSource 
            ID="SqlDataSource1"
            runat="server"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="Select ProductID, ProductName From Products"
            DataSourceMode="DataReader"
            >
        </asp:SqlDataSource>
        <br /><br />
        <asp:ListBox 
            ID="ListBox1"
            runat="server"
            DataSourceID="SqlDataSource1"
            DataTextField="ProductName"
            DataValueField="ProductID"
            ForeColor="SandyBrown"
            BackColor="Snow"
            Font-Names="Courier New"
            Height="250"
            Font-Bold="true"
            >
        </asp:ListBox>
    </div>
    </form>
</body>
</html>
More asp.net ajax example