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
Thamizh Arasan
NA
8
14.8k
I want to send a whatsapp message in ASP.NET MVC 5.
Aug 28 2015 11:29 AM
How to send a whatsapp message in asp.net mvc 5 can you please share me your answers.
I am already create in c# but that the coding also not working properly if i run a program it always shows like connection failed not authorized. i declare a coding below..
private void button1_Click(object sender, EventArgs e)
{
string from = "xxxxxxxxxxmy Mobile Number";
string TO = textBox1.Text;
string Message = textBox2.Text;
WhatsApp wa = new WhatsApp(from, "xxxxxxxxxxxxxxxxxxx", "Thamizh, false, false");
wa.OnConnectSuccess += () =>
{
MessageBox.Show("Connected to Whatsapp");
wa.OnLoginSuccess += (PhoneNumber, data) =>
{
wa.SendMessage(TO ,Message);
MessageBox.Show("Message send successfully");
};
wa.OnLoginFailed += (data) =>
{
MessageBox.Show("Login Failed :{0}", data);
};
wa.Login();
};
wa.OnConnectFailed += (ex) =>
{
MessageBox.Show("Connection Failed");
};
wa.Connect();
}
Reply
Answers (
2
)
Load Values to radio button list when page is load
how to return multiple output values from stored proc?