There is no SelectedText property for the drop down list box.
try this:
dd.SelectedItem.Text = "FL";
or if you know the index number of Fl you can do
dd.SelectedIndex = 5 (or whatever FL is)
Mike
> There is no SelectedText property for the drop down list box.
>
[quoted text clipped - 19 lines]
>> >
>> > Thanks, Mark
SandpointGuy - 27 Sep 2007 21:28 GMT
Actually, SelectedItem.Value is closer to what I want. But it adds a new
entry at the top, rather than selecting the existing value of "FL"
In other words, I get :
<option value="FL" selected="selected" value="FL">Alabama
<option value="AL">Alabama
... other states
<option value="FL">Florida
And what I want is:
<option value="FL" selected="selected">Florida
<option value="AL">Alabama
... other states
> try this:
> dd.SelectedItem.Text = "FL";
[quoted text clipped - 28 lines]
> >> >
> >> > Thanks, Mark