Click here to Skip to main content
12,547,806 members (31,433 online)
Click here to Skip to main content
Add your own
alternative version


24 bookmarked

Custom ASP.NET DropdownList Control Using Chosen jQuery Plugin

, 26 Oct 2015 CPOL
Rate this:
Please Sign up or sign in to vote.
Custom ASP.NET DropdownList control using chosen jQuery plugin


The ASP.NET DropDownList is an easy way to offer a set of selections for the user. However, if you want to allow the user to enter information not available in the dropdown list, you will have to write your own JavaScript code or jQuery. This source code combines that work into an ASP.NET DLL control you can easily place on any ASP.NET web page.

The downloadable source project above uses the following technologies:



You do not need to have knowledge of jQuery, JavaScript, or CSS to use the DropDownListChosen. The only requirement is to drag and drop the DropDownListChosen control. The source code download contains the class library project for the DropDownListChosen and a test website using the DropDownListChosen control.

Using the Nuget-Package

You can now reference this project as a nuget package.

  • Install-Package DropDownListChosen

This will add necesary configuration for you, just add the control tag to your webform like this.

<asp:DropDownListChosen ID="DropDownListChosen1" runat="server" 
            NoResultsText="No results match." width="350px"            
            DataPlaceHolder="Type Here..." AllowSingleDeselect="true">                
  1. Bind items to your dropdown list either manually by adding ListItems to the DropDownListChosen or by binding to a DataSource.
    Datasource example can be found in the downloadable source code above.

You're done! You can now work with your DropDownListChosen to find what options work best for you. I would love to hear some great feedback if you use this control on your site.

Also added a repository on github.


  • 13th July, 2013: Tip published
  • 7th August, 2013: Added DataPlaceHolder property and removed style sheet that causes design problems
  • 7th September, 2013: Added new properties AllowSingleDeselect and DisableSearchThreshold
  • 25 Octiber, 2015: Added as a Nuget Package


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


About the Author

Angel Blandón
Software Developer Communications
Nicaragua Nicaragua
I am a ASP.Net Software Developer from Nicaragua.

You may also be interested in...


Comments and Discussions

QuestionGreat Control.How do i do match text in between the values? Pin
norbertabone18-Jul-16 8:02
membernorbertabone18-Jul-16 8:02 
AnswerRe: Great Control.How do i do match text in between the values? Pin
Angel Blandón11-Aug-16 8:14
memberAngel Blandón11-Aug-16 8:14 
QuestionWebforms - Script Manger Pin
Member 1120597618-Apr-16 8:15
memberMember 1120597618-Apr-16 8:15 
QuestionHow to use for child direcotry? Pin
KiranKumar Roy9-Apr-16 22:42
memberKiranKumar Roy9-Apr-16 22:42 
QuestionTarget framework 2.0 Pin
Paladin201023-Mar-16 22:41
memberPaladin201023-Mar-16 22:41 
BugLook & Feel In IE, Select Index change Pin
Mayur89807-Jan-16 22:57
memberMayur89807-Jan-16 22:57 
QuestionGREAT! Though I found a bug Pin
jgakenhe27-Oct-15 7:31
memberjgakenhe27-Oct-15 7:31 
QuestionDoes this work well on mobile? Pin
Dewey26-Oct-15 15:02
memberDewey26-Oct-15 15:02 
AnswerRe: Does this work well on mobile? Pin
Angel Blandón27-Oct-15 7:47
memberAngel Blandón27-Oct-15 7:47 
Questionhello friend. Pin
Mojtaba Setoodeh16-Oct-15 21:43
memberMojtaba Setoodeh16-Oct-15 21:43 
AnswerRe: hello friend. Pin
Angel Blandón20-Oct-15 10:16
memberAngel Blandón20-Oct-15 10:16 
GeneralRe: hello friend. Pin
Mojtaba Setoodeh25-Oct-15 23:10
memberMojtaba Setoodeh25-Oct-15 23:10 
QuestionHow to load the dropdown without selecting any item Pin
Member 101991945-Aug-15 23:56
memberMember 101991945-Aug-15 23:56 
QuestionNot enabling search option while call this control page in iframe Pin
Member 1019919423-Jul-15 20:09
memberMember 1019919423-Jul-15 20:09 
QuestionSelectedIndexChanged function not firing up Pin
mehboob samnani23-Jul-15 2:28
membermehboob samnani23-Jul-15 2:28 
AnswerRe: SelectedIndexChanged function not firing up Pin
Angel Blandón26-Jul-15 13:15
memberAngel Blandón26-Jul-15 13:15 
QuestionControl Problem Pin
UAB Mike Johnston15-Apr-15 2:39
memberUAB Mike Johnston15-Apr-15 2:39 
QuestionHow to Add the item if it is not in the list Pin
STPL TEST15-Apr-15 2:28
memberSTPL TEST15-Apr-15 2:28 
QuestionRTL right to left direction sites not working properly Pin
nawinsoft26-Mar-15 6:57
membernawinsoft26-Mar-15 6:57 
Questionunable to search if i add items dynamically Pin
Malar Karthik6-Mar-15 17:00
memberMalar Karthik6-Mar-15 17:00 
AnswerRe: unable to search if i add items dynamically Pin
Angel Blandón7-Mar-15 15:44
memberAngel Blandón7-Mar-15 15:44 
Questionhow to set the value of DropDownListChosen1 from javascript or jquery Pin
Member 1128534118-Feb-15 21:41
memberMember 1128534118-Feb-15 21:41 
AnswerRe: how to set the value of DropDownListChosen1 from javascript or jquery Pin
Angel Blandón19-Feb-15 2:15
memberAngel Blandón19-Feb-15 2:15 
GeneralRe: how to set the value of DropDownListChosen1 from javascript or jquery Pin
Member 1128534119-Feb-15 18:45
memberMember 1128534119-Feb-15 18:45 
Questionon postback styles are lost Pin
goud1238-Dec-14 4:41
membergoud1238-Dec-14 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161021.1 | Last Updated 26 Oct 2015
Article Copyright 2013 by Angel Blandón
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid