This is a migrated thread and some comments may be shown as answers.

[Solved] how to reset back to initial state with emptyMessage and no selected items? serverside

1 Answer 91 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
a
Top achievements
Rank 1
a asked on 25 Sep 2009, 03:38 PM
Hi,

have a simple comboBox  that initiall displays an emptyMessage ( like "please select").
ComboBox is set to autopostback and AllowCustomMessage is true

Can't seem to find a way to reset the comboBox to it's initial state from servers side.

Tried setting selectedIndex to something like -1, but that doesn't work.

thanks

1 Answer, 1 is accepted

Sort by
0
Vesko
Top achievements
Rank 2
answered on 26 Sep 2009, 11:04 AM
Try with:

combo.ClearSelection(); 
combo.Text = string.Empty; 


Hope this helps.
Tags
ComboBox
Asked by
a
Top achievements
Rank 1
Answers by
Vesko
Top achievements
Rank 2
Share this question
or