We help IT Professionals succeed at work.
Get Started

ASP.NET Use JQuery typeahead on asp.net dropdown box

CipherIS
CipherIS asked
on
110 Views
Last Modified: 2016-01-14
Below is an example of an ASP.NET page I am working with.  I was looking at the jquery plugin typeahead.  Is it possible to integrate that to filter the dropdown box control?  I've been trying to find examples of how to integrate it but haven't found anything.  The example provided is using a hard coded list where I am pulling data from a database.

http://twitter.github.io/typeahead.js/examples/
http://plugins.jquery.com/typeahead.js/

<%@ Page Title="Maintenance" Language="C#" MasterPageFile="~/baseFrame.master" AutoEventWireup="true" Inherits="Maint" Codebehind="Maint.aspx.cs" %>
<%@ MasterType VirtualPath="~/baseFrame.master" %>
<%@ Register TagPrefix="uc1" TagName="docFolder" Src="docFolder.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
<table class="smallList" width="95%" border="0">
	<tr align="center">
		<td class="instruction"><asp:label id="lblMessage" runat="server" EnableViewState="False"></asp:label></td>
	</tr>
	<tr align="center">
		<td>
			<table class="smallList" width="95%">
				<tr>
					<td vAlign="top" width="50%">
						<table width="100%">
							<tr>
								<td>Card Type</td>
								<td><asp:dropdownlist id="ddlcdType" runat="server"></asp:dropdownlist></td>
							</tr>
						</table>
					</td>
				</tr> 
			</table>
		</td>
	</tr>
</table>
</asp:Content>

Open in new window


Thanks
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE