Click here to Skip to main content
15,886,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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>
    <style type="text/css">

        .PnlDesign
        {
            border: solid 1px #000000;
            height: 150px;
            width: 330px;
            overflow-y:scroll;
            background-color: #EAEAEA;
            font-size: 15px;
            font-family: Arial;
        }
        .txtbox
        {
            background-image: url(../images/drpdwn.png);
            background-position: right top;
            background-repeat: no-repeat;
            cursor: pointer;
            cursor: hand;
        }
    </style>
</head>
<body>
   <form id="Form1" runat="server">
  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:TextBox ID="txtCustomer" Text="Select Customers" runat="server" CssClass="txtbox"
                    Height="20px" Width="322px"></asp:TextBox>
                <asp:Panel ID="PnlCust" runat="server" CssClass="PnlDesign" style="text-align:left">
                    <asp:CheckBoxList ID="cblCustomerList" runat="server" AutoPostBack="true"
                        onselectedindexchanged="cblCustomerList_SelectedIndexChanged">
                        <asp:ListItem>Customer One</asp:ListItem>
                        <asp:ListItem>Customer Two</asp:ListItem>
                        <asp:ListItem>Customer Three</asp:ListItem>
                        <asp:ListItem>Customer Four</asp:ListItem>
                        <asp:ListItem>Customer Five</asp:ListItem>
                        <asp:ListItem>Customer Six</asp:ListItem>
                        <asp:ListItem>Customer Seven</asp:ListItem>
                    </asp:CheckBoxList>
                </asp:Panel>
                 <asp:Button ID="Button1" runat="server" Text="Reset" onclick="Button1_Click" />
                <br />
                <cc1:DropDownExtender ID="PceSelectCustomer"  runat="server" TargetControlID="txtCustomer"
                    DropDownControlID="PnlCust" HighlightBorderColor="ActiveCaptionText">
                </cc1:DropDownExtender>
             
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>

    </form>
</body>
</html>



i was remove the my practice javascript codes i was tried so many filter javascript codes but i was not getting the exact one !!!
if anyone guide me to solve filter concept.
Posted
Comments
Rob Branaghan 4-Nov-14 7:01am    
What background code do you have? (The Default.aspx.cs file)
Because you will probably have some code for when the text has changed in the txtCustomer?
[no name] 17-Nov-14 5:02am    
use list search extender !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900