cancel
Showing results for 
Search instead for 
Did you mean: 

Array Error

Since I can not find how to post new I will post here. This code provided by teh developer guide triggers an error on reading the array. Any ideas why:

 

Array response_array = post_response.Split('|');
int ResponseCode = response_array[0];
resultSpan.Text = ResponseCode.ToString();

 

BradCowart
Member
1 REPLY 1

What error are you getting? Which line?

 

My guess is that your delimited char is not pipe '|' and getting an error on int ResponseCode = response_array[0];


Can you run in debug to see what in post_response before you do the split?

RaynorC1emen7
Expert