Hi,
this is an example for seperating , from a string try this
char[] separator = new char[] { ',' };
string[] strProductId = YourString.Split(separator);
for (int i = 0; i < strProductId.Length - 1; i++)
{
int ProdId = Convert.ToInt32(strProductId[i]);
}