ASP.NET ComboBox - Insert Custom Items

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