Forums - C# Corner

Forum guidelines
Nandhakumar Nagarajan

Nandhakumar Nagarajan

  • 1.6k
  • 184
  • 3.7k

index was outside bound of array

May 9 2019 8:05 AM
how to check  arra condition
 
protected void btn_submit_Click(object sender, EventArgs e)
{
string str = null;
string[] strArr = null;-
str = ddl_rectfication_type.SelectedItem.Value;
char[] splitchar = { ' ' };
strArr = str.Split(splitchar);    
if(strArr[2] == "1")      ///  the  values comes from strArr in "0|CWS|0|1"
 
 how can i check the array value
how to solve ittttttt   

Answers (4)