I'm using dropdownlists for the user to select an item which is then saved into the database. I'm sure this WAS working when i originally tested it, now i've come back to it (was using the frame to set up test data for a later frame) and its not working. (It just selects the first item).
I've even tried the below, which isnt working either.
I'm using .Net 2005, i've checked that the 'EnableViewState' is set to true. I'm guessing this has something to do with the button doing a postback. After the label has been changed (to show the first item, not the selected one), the dropdownlist shows the first item again.
Does anybody know what i've done to display the viewstate memory?
Thanks.
I've even tried the below, which isnt working either.
Visual Basic:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Label11.Text = ddownRoles.SelectedIndex.ToString
'also tried selectedvalue, which as i'm sure you know displays the samething
End Sub
I'm using .Net 2005, i've checked that the 'EnableViewState' is set to true. I'm guessing this has something to do with the button doing a postback. After the label has been changed (to show the first item, not the selected one), the dropdownlist shows the first item again.
Does anybody know what i've done to display the viewstate memory?
Thanks.