I'm using the new Microsoft ASP.NET Ajax Combobox control in my web application and I'm having trouble figuring out how to programatically set the selected list item. For example, I have a form to accept addresses and a combobox to accept a city name. After the user enters and saves and address, I'd like to reset the form, including the comboboxes.
With a regular ASP.NET dropdownlist control I can reset the selected item like below:
City.SelectedIndex = -1;
The ASP.NET AJAX Combobox control, accepts this line of code, but when the page posts back, the previously selected value is still selected. Help would be appreciated.
Update: I tried the following to no avail...
City.ClearSelection();