Hi,
I can not get the first item in the combobox selected because it is null .. the code is this?
if (!string.IsNullOrEmpty(prova))
{
string[] valori = prova.Split('-');
ddl_ref.Visible = true;
for (int i = 0; i< valori.Length ; i++)
{
ListItem selectedListItem = cb_soc.Items.FindByValue(valori[i]);
if (selectedListItem != null)
selectedListItem.Selected = true;
Hidden_SocietaSel.Value += valori[i] + "-";
}
how could I do?
selectedListItem result null.
Thanks in advance.. it is very urgent.
Camilla.