The dropdown list control is that. It looks like a text box but has an arrow which allows to you pick from a set of values.
You can You provide it a dataset, to populate the values shown when you click the dropdown.
One significant problem with the dropdown list control is if the control is a bound form, (that is each control ties to a field in an object, or a recordset), and the value that is being bound is not contained within the values in the dropdown control, the whole webpage fails.
What you need to do is introduce logic to accommodate the situation of an invalid value. This is known as making the form a bit more robust - less prone to failure.
Topics