Question: Let's say I have two arrays in my javascript:

```
var content = ["string1", "string2", "string3", "string4"],
    milliseconds = [500, 1500, 1000, 500];

```

I want each element of `content` array to be displayed in console one by one with intervals from `milliseconds` array in a way that `string1` is displayed after 500 milliseconds, `string2` after 1500 (from the displaying of `string1`) and so on.

I'm a total beginner, I tried stuff like:

```
for (var i = 0; i < content.length - 1; i++) {
    setTimeout(function() {
        console.log(content[i]);
    }, milliseconds[i]);
};

```

But it displays only the last string four times, and it looks like `setTimeout` methods all start at the same time, not one after another. Is there a way to get the effect I want?

Answer: 
To add ToArray() to your LINQ query try this:

```
 searchResults.DataSource = (from r in response.Results
    select new
    {
        Title = r[SearchContentProperty.Title],
        Summary = r[SearchContentProperty.HighlightedSummary]
    }).ToArray();

searchResults.DataBind();

```
```
searchResults.DataSource = (from r in response.Results
select new
{
    Title = r[SearchContentProperty.Title],
    Summary = r[SearchContentProperty.HighlightedSummary]
}).ToArray();

```

searchResults.DataBind();
is true,

Edit: i got almost same problem but if still paging is not wotking you can use searchResults PagePropertiesChanging event and write codes like this in to get paging fine

```
protected void searchResults_PagePropertiesChanging(object sender,PagePropertiesChangingEventArgs e)
{
DataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);

//write your codes again to bind data,for this example:

searchResults.DataSource = from r in response.Results
select new
{
    Title = r[SearchContentProperty.Title],
    Summary = r[SearchContentProperty.HighlightedSummary]
 };

 searchResults.DataBind();
}

```