Use the Split method (member of String) to split the string on commas. The Split method will return an array of Strings.
Ezzaral
Posting Genius
15,985 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
string str= "12,13,14,15";
string[] strs = str.Split(',');
ArrayList strsList = new ArrayList();
foreach(string s in strs)
strsList.Add(s);
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276