Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to develop a sms application using asp.net...can any one help?I am new to this concept
Posted

.Net does not have a inbuilt support for sending SMS messages. Having said that, this has been discussed and implemened many times before. Look at Google and you should be able to find examples and third party applications which does it for you.

asp.net send sms[^]
 
Share this answer
 
v2
 
Share this answer
 
v2
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;
}
}



http://www.webservicex.com/sendsmsworld.asmx[^]
 
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