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 ?

Ah thanks guys its definately the label , it doenst have postback value ... i forgot :)

Thanks so much ....

Ah thanks guys its definately the label , it doenst have postback value ... i forgot :)

Thanks so much ....

gud 4 u....Enjoy programming...

This question has already been answered. Start a new discussion instead.