ASP.NET ComboBox - Insert Custom Items
Zimbabwe
230
Zambia
229
Yemen
228
Wallis and Futuna
227
Wales
226
Virgin Islands
225
Vietnam
224
Venezuela
223
Vatican City
222
Vanuatu
221
Uzbekistan
220
USA
219
Uruquay
218
United Arab Emirates
217
Ukraine
216
Submit
By default, the ComboBox only allows existing items from the list to be selected by end users.
You can configure the ComboBox to allow custom text (that doesn't exist in the items list)
to be typed into the input field. This is done by setting the
AllowCustomText
property to
true
.
This example showcases the insertion of the newly typed custom text into the database.
After the button is pressed and the page is posted back to the server, the newly typed item will show up in the list with items.
« Back to examples