Let's say I have a web page that currently accepts a single ID value via a url parameter:
http://example.com/maypage.aspx?ID=1234
I want to change it to accept a list of ids, like this:
http://example.com/mypage.aspx?IDs=1234,4321,6789
So it's available to my code as a string via context.Request.QueryString["IDs"]. What's the best way to turn that string value into a List<int>?
Edit: 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 in list. This is still in .Net 2.0, so no lambdas.