Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to every mobile number Separating with commas
vb.net and c# net

textbox1 in enter mobile numbers

9898765432
9876567898
9999999999
998978
9898989898

submit buttion click

textbox2 in

9908302604,9059210823,9999999999,998978,9898989898
Posted
Updated 26-Jan-16 0:53am
v2
Comments
hypermellow 26-Jan-16 6:36am    
Can you post what code you've tried, and were you are stuck?
Thanks.
prabhakarcs 26-Jan-16 6:56am    
hi sir, bulk sms send to mobiles purpose
iam send to single msg perfect sir using http sms api
but this type textbox in enter mobile numbers not send msg sir

1 solution

Try:
C#
string csv = string.Join(",", myMultiLineTextBox.Lines);
 
Share this answer
 
Comments
prabhakarcs 26-Jan-16 6:59am    
hi sir, bulk sms send to mobiles purpose
iam send to single msg perfect sir using http sms api


sir please briefly tell me sir..
OriginalGriff 26-Jan-16 7:01am    
Did you try the code?
It returns a string with each line separated by a comma...which is exactly what you asked for...
prabhakarcs 26-Jan-16 7:09am    
very very thank u sir...

perfect working.......

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