Nathan,
This is only a guess, but a very common oversight is binding the drop down
list on every page load which resets the selected item.
In your code, where you bind your drop down list, put:
If Not Page.IsPostBack Then
'---Bind your drop down here
End If
That should take care of it if my guess is correct.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Nathan Sokalski" <> wrote in message
news:...
>I have a DropDownList that is returning the value from index 0 regardless
>of which item is selected. The code that I am using to test which index it
>is returning is:
>
> Label1.Text = ddlDeleteEvents.SelectedIndex
>
>
> This is the first line of code in a Button's Click event handler, so I
> know that there is no other code changing the selected value before I use
> it. What is happening here? Any help would be appreciated. Thanks.
> --
> Nathan Sokalski
>
> http://www.nathansokalski.com/
>