Do you have your .DataBind() for the ddl encapsulated in a "if
(!Page.IsPostBack)" expression? If you don't watch for postbacks, it will
re-build the items collection on the dll every time you post back and
therefore only return the currently selected item in the new collection,
namely the first item by default.
Hope this helps.
Sam
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
I have a dropdownlist which I populated on page_load. This works fine. I
simply do a ddlMyDdl.Items.Add(xxx)
I also have a button which references the CURRENTLY selected item in the
ddl like this:
ddlMyDdl.SelectedItem
The problem is that I am ALWAYS getting the first item back! Even when I
select the 5th item, the 10th item, etc....
Any ideas?
Thanks.