how send message on mobile using asp.net code

Posted by Gow.Net under ASP.NET on 5/8/2012 | Points: 10 | Views : 53992 | Status : [Member] | Replies : 7
how send message on mobile using asp.net code? or
how to use 160by2 or way2sms send message on mobile using asp.net code?

gowthaman8870226416


Responses

Posted by: Sakthi.Singaravel on: 5/8/2012 [Member] Silver | Points: 25

Up
0
Down
http://www.codeproject.com/Articles/19023/Sending-SMS-using-NET

Regards,
Singaravel M

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 5/26/2012 [Member] Bronze | Points: 25

Up
0
Down
using System;

using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Mail;
using System.Web.Services.Protocols;
using System.Web.Services;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
try
{

SmsTest.net.webservicex.www.SendSMS smsIndia=
new SmsTest.net.webservicex.www.SendSMS();
SmsTest.com.webservicex.www.SendSMSWorld smsWorld =
new SmsTest.com.webservicex.www.SendSMSWorld();
if(rdoType.SelectedValue == "1")
smsIndia.SendSMSToIndia(TextBox3.Text.Trim(),
TextBox1.Text.Trim(), TextBox4.Text);
else
smsWorld.sendSMS(TextBox1.Text.Trim(),
TextBox2.Text.Trim(),
TextBox3.Text.Trim(), TextBox4.Text);
lblMessage.Visible = true;
lblMessage.Text = "Message Send Succesfully";
}
catch (Exception ex)
{
lblMessage.Visible = true;
lblMessage.Text = "Error in Sending message" + ex.ToString();
}

}


private void rdoType_SelectedIndexChanged(object sender, System.EventArgs e)
{
if(rdoType.SelectedValue =="1")
TextBox2.Enabled = false;
else
TextBox2.Enabled = false;
}

}



Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 5/26/2012 [Member] Bronze | Points: 25

Up
0
Down
http://www.webservicex.com/sendsmsworld.asmx

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ksuresh on: 8/20/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Gow.Net,

Hope you are doing well,

Do you resolved or solved this issue, Because i also need same thing Now, " i am Just in thought how to send SMS using asp.net or any third party helpful to author who posted content in mywebsite" , Please help me in this...:)

Thanks in Advance
Regards'
Suresh

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anilbabu.M on: 9/17/2012 [Member] Starter | Points: 25

Up
0
Down
give me complete source code on this one,
I can user this service geeting an error,
I can send sms us also,
Plz give me complete code help me

zzcc

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/17/2012 [Member] Starter | Points: 25

Up
0
Down
Nice Explanation & Nice Link SabariMahesh.Thanq for posting..

Thanks & Regards
Hari

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vikash on: 9/17/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Basically you require a SMS Gateway through which you have to send your message, which would be a paid service to which you have to subscribe. My suggestion would be to create a common interface for mail, text messages etc which would contain methods like "SendMessage","ConstructMessage" etc and implement those. Usually your application would require to consume a webservice provided by the gateway service, but I believe there are some other methods in practice as well. The following links might be of help to you -

http://forums.asp.net/t/57735.aspx

http://www.gotocode.com/art.asp?art_id=66 - contains the basic code structure

You can download this free component and check it out (not sure about licensing terms, so read their terms if you want to use it commercially) - http://www.intellisoftware.co.uk/sms-gateway/dotnet-component/

If it if helpful, mark as answer

Regards,
Vikash Pathak

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response