Hi
I have a form with
1. dropdown (ddTTDBenefitP1)
2. label (lblBenefitPeriodFactor1)
The combobox is populated with listitems
[Text & value]
I applied attributes to this dropdown.
// ddTTDBenefitP1
ddTTDBenefitP1.SelectedIndex = 0;
string ddTTDBenefitP1_script = string.Format("javascript:document.getElementById('{0}').innerText = {1}.options[{1}.selectedIndex].value;", lblBenefitPeriodFactor1.ClientID, ddTTDBenefitP1.ClientID);
ddTTDBenefitP1.Attributes.Add("onChange", ddTTDBenefitP1_script);
So when a user changes the selectedItem , the label display's the value of the selected Item.
However, when i save, i need to grab the value of the label.
But for some reason its 0 or blank ... But the actual text is not
Can anyone help ?