J
jeffd
I have a listbox control which is populated from a database via a
handler of it's onload event. After (or before, I've tried both) I
bind the dataset to the listbox, I attempt to use
mylistbox.Items.FindByValue("myvalue").Selected = True
to match a previously fetched database value. The code executes
without a problem, but on the aspx page the listbox doesn't have a
selected value at all! Is there some sort of update command or
something I need to call on the listbox? I've also tried just using a
static mylistbox.selectedindex = x command just to test it, but that
doesn't show up either!
handler of it's onload event. After (or before, I've tried both) I
bind the dataset to the listbox, I attempt to use
mylistbox.Items.FindByValue("myvalue").Selected = True
to match a previously fetched database value. The code executes
without a problem, but on the aspx page the listbox doesn't have a
selected value at all! Is there some sort of update command or
something I need to call on the listbox? I've also tried just using a
static mylistbox.selectedindex = x command just to test it, but that
doesn't show up either!