asp.net dropdown does not hold any value

May 25 2004 4:34 PM
as per requirement i have a asp.net dropdwon on my aspx page which gets populated from a Javascript function within a normal for--next loop. the dropdown shows the value on the page but when selected , i cannot extract any text or value from the dropdown using drp.SelectedItem.Text or drp.SelectedItem.Value. both of them show nothing. in Javascript i populated my dropdown as -- opt[0] = new Options("Algeria",0) ; opt[1] = new Options("Angola",1) ; and they show fine on the page. it's only after selecting any of the values -- i dont find anything.