TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mfwamba Tshimanga
NA
155
46.2k
Very important to learn: convertion from code to boxs
Sep 8 2014 8:32 PM
Hi!
Please how can I send my SMS throught Textboxs and combobox? I am asking this simple question because I must insert in that line of code in red the cellnumber(s). But I don't want that way. I need a professional way.
user =
txtUser
, password =
txtPassword
; api_id =
txtApiId
; cellphone=
cbxCellnumber
; message =
txtMsg
string baseurl = "http://api.clickatell.com/http/sendmsg?
user=
[x
]
&password=
[xx]
&api_id=
[xxx]
&to=
[xxxx]
&text=
Message
" + to + "'&text='" + msg + "'";
private void button1_Click(object sender, EventArgs e)
{
try
{
WebClient client = new WebClient();
string to, msg;
to = textBoxTo.Text;
msg = textBoxMsg.Text;
string baseurl = "http://api.clickatell.com/http/sendmsg?user=[x]&password=[xx]&api_id=[xxx]&to=[xxxx]&text=Message" + to + "'&text='" + msg + "'";
// This line here
client.OpenRead(baseurl);
MessageBox.Show("Message sent");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
Reply
Answers (
3
)
RegistryAccess UnauthorizedAccessException
Abstract Syntax Notation One