I have a problem which is not really Umbraco-related but hopefully I casn get some help anyhow :).
I have a dropdownlist control that I use to populate a repeater. I managed to get it to work just fine but i must have changed the code somehow because not its not working.
I want to get the Value from the dropdownlist and the Text.
Use Dropdownlist as datasource
I have a problem which is not really Umbraco-related but hopefully I casn get some help anyhow :).
I have a dropdownlist control that I use to populate a repeater. I managed to get it to work just fine but i must have changed the code somehow because not its not working.
I want to get the Value from the dropdownlist and the Text.
My Repeater looks like this:
And my code for populating it:
The problem is in the repeater when i try to get the Value.
I thought that this way to get the value was ok but it seems that this is not working.
What am I doing wrong?
As usual when I post at this forum I found the solutions right afterward..
I added this:
dl.DataTextField =
"Text";
dl.DataValueField =
"Value";
is working on a reply...