here is my code:
error is: in the datacolumn, there is null , empty and 'none' value.
i want to my s contains only the entity not including null, empty, 'none' value.
Any help will be appreciate!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mamta MPosted Feb 22, 2011, 12:27 AM
string[] s = Array.ConvertAll
if (row["columname"].GetType().ToString() != "System.DBNull")
return (string)row["columname"];
else
return "";
});
Michael XiePosted Feb 28, 2011, 11:30 PM
foreach (string s in arrs1)
{
if (s == null || s.Length == 0)
{
continue;
}
else if(!arrs2.Contains(s))
{
arrs2.Add(s);
}
}
thanks for your help so:)