check array[1] is exists c# asp.net code example
Example: c# check if array contains value
public static bool Contains(Array a, object val)
{
return Array.IndexOf(a, val) != -1;
}
public static bool Contains(Array a, object val)
{
return Array.IndexOf(a, val) != -1;
}