Code:
foreach (SearchResult result in search.FindAll())
{
//pieces = result.Properties["samaccountname"][0].ToString().Split(new Char[] { '\'' });
//for (int i = 0; i < pieces.GetLength(0); i++)
//{
//name = name + pieces[i];
//}
manager.Items.Add(new ListItem(name, result.Properties["samaccountname"][0].ToString()));
name = "";
The errors are as follows: Cannot implicity convert type 'string[]' to 'string'
'string' does not contain a definition for 'GetLength'
Any help asap would be really nice.
Comment