Using Chosen with ASP.net: pre filling and saving multiple selections
The problem
- You want to use Chosen to snazz up your dropdowns.
- You need to store the selected values.
- You need to prefill the selected values when the page is reloaded.
- You want to use Chosen to snazz up your dropdowns.
- You need to store the selected values.
- You need to prefill the selected values when the page is reloaded.
Setting up chosen: Add chosen to the project. The simplest way is to use NuGet Package Manager:
- Right click solution explorer > Manager NuGet Packages > Search for "chosen" > "Install"
Once it has installed you will need to reference it in your .aspx file: