Question: How to change an image to the next one in the array using a for loop, once a button has been clicked. At present I have this in my on click method.

```
 int[] Pics = {R.drawable.pic1, R.drawable.pic2, R.drawable.pic3};

 for (int i=0; i<Pics.length; i++){

     mainpic.setImageResource(Pics[i]);

 }

```

The problem is when the next button is clicked, it only stays at the first image or goes straight through to the last image.

Answer: 
the answer is they all get separated by slashes as shown below

```
 <HttpGet()> _
 <Route("getsinglerangeprojection/symboltype/{symboltype:int}/symbol/{symbol}/requestdate/{requestDate:datetime}")> _
 Public Function GetSingleRangeProjection(ByVal symboltype As Integer,
                                         ByVal symbol As String,
                                         ByVal requestDate As String) As ProjectedRange
    ...code here
 End Function

```
You should create a model to represent your data like this 

```
public class MyData
    {
        public string symboltype { get; set; }

        public string symbol { get; set; }

        public DateTime requestData { get; set; }
    }

```

And change your method to use the model or **JObject** as the parameter.

Finally, post the whole json object as a string 

data:JSON.stringify({ "symboltype": symboltype, "symbol": symb, "requestDate": dDate}); 

Hope this help.