not working..
-------------------
string lstSplit;
lstSplit = rdrExmr["airman_cert_held"].ToString(); < ----------
{ 1/3/4/5/6/ } returns
char[] sep = { '/' };
Array a = lstSplit.Split(sep);
for (int i = 0; i < a.Length; i++)
{
int ij = (int)a[i]; /// giving error here....
lstCertification.Items[i].Selected = true;
}
-------------------
error messa-ge : Cannot apply indexing with [] to an expression of type
'System.Array'
Mahes
"Kalpesh" <sh*********@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi Mahesh,
In the loop, you can do the following
for(....)
{
int i = (int)a[i];
lstCertification.Items[i].selected = true;
}
HTH
Kalpesh