M
Martyn Fewtrell
Hi There
I apologise for this one as I am sure that it is pretty straight forward.
I am using VB.NET in ASP and have loaded a drop down list from the
database - No problem so far!
I then want to set the selected value of the list using a text value from
elsewhere so that the drop down list displays the correct value when the
page is opened.
Currently using
dropdownlist.SelectedItem.Text = literal.text
where the literal holds the value that I want selected.
This seems to be changing the text value of the selected item to that of the
literal value rather than selecting the correct item from the list and
setting the selected value to the correct selection.
Hope this makes sense.
Martyn Fewtrell
I apologise for this one as I am sure that it is pretty straight forward.
I am using VB.NET in ASP and have loaded a drop down list from the
database - No problem so far!
I then want to set the selected value of the list using a text value from
elsewhere so that the drop down list displays the correct value when the
page is opened.
Currently using
dropdownlist.SelectedItem.Text = literal.text
where the literal holds the value that I want selected.
This seems to be changing the text value of the selected item to that of the
literal value rather than selecting the correct item from the list and
setting the selected value to the correct selection.
Hope this makes sense.
Martyn Fewtrell