<p>Let's say I have a web page that currently accepts a single ID value via a url parameter:<br>
    <a href="http://example.com/mypage.aspx?ID=1234" rel="nofollow noreferrer">http://example.com/mypage.aspx?ID=1234</a></p>

<p>I want to change it to accept a <em>list</em> of ids, like this:<br>
    <a href="http://example.com/mypage.aspx?IDs=1234,4321,6789" rel="nofollow noreferrer">http://example.com/mypage.aspx?IDs=1234,4321,6789</a></p>

<p>So it's available to my code as a string via <em>context.Request.QueryString["IDs"].</em>  What's the best way to turn that string value into a List&lt;int>?</p>

<p><strong>Edit:</strong> I know how to do .split() on a comma to get a list of strings, but I ask because I don't know how to easily convert that string list to an int list.  This is still in .Net 2.0, so no lambdas.</p>

You can use string.Split() to split the values once you have extracted them from the URL.
```
```
string[] splitIds = ids.split(',');
```
```