Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am sending message to multiple mobile numbers. i am taking one textbox for enter mobileno's for sending a message. if user want to send multiple mobileno's then put comma and write another mobileno.
i write a one method i.e., sendMessage() in this method i retrive mobileno from textbox. i send message to one mobile number its working but user user enter multiple mobileno's that time number comes one by one to the SendMessage() method from textbox.
how to write this type of code?

please give a solution

thanks
Posted

Use the split method on the string class to turn the one bit of text into a collection of numbers.
 
Share this answer
 
I believe that *should* be the flow! One by one only. Are you expecting that all the numbers come to 'SendMessage()' method at once and it sends message to all of them simultaneously? That would not be possible. It's sort of queue and one by one would be executed.

If you have other doubt then update the question with it.
 
Share this answer
 

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