Question: ```
 lowerbound = (CurrentPage - 1) * 10;
 upperbound = (CurrentPage * 10) -1;

```

I have an upper bound and lower bound two integers that specify what is the lowest and highest element between which elements from the List have to be accessed 

```
List<string> take = list.Take(upperbound).ToList();

```

How do I select items from a list lower bound to upper bound? 

```
foreach (string elemt in take)
{
    HtmlGenericControl div = new HtmlGenericControl("div");
    div.ID = "div" + elemt;

    Label text = new Label();
    text.Text = elemt;
    div.Controls.Add(text);
    divtest.Controls.Add(div);
}

```

Answer: 
```
IEnumerable<TSource>.Skip(lowerBound).Take(upperBound-lowerBound)

```

MSDN documentation for [Skip](http://msdn.microsoft.com/en-us/library/bb358985.aspx) and [Take](http://msdn.microsoft.com/en-us/library/bb503062.aspx).
```
for(int i = lowerBound; i <= upperBound; ++i)
{
   string elemt = take(i);
}

```