Click here to Skip to main content
15,849,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have a multiline textbox that has to be bound with comma separated values.
Can anyone please suggest me or give some good links ...


Raj Bangalore

1 solution

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]);
Share this answer
Raj.rcr 1-Apr-11 0:48am    
Thank you.. I got the solution..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900