如何使用asp.net向移动设备发送消息? [英] How to send a message to a mobile using asp.net?

查看:112
本文介绍了如何使用asp.net向移动设备发送消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用asp.net开发一个sms应用程序...可以任何一个帮助吗?我是这个概念的新手

I want to develop a sms application using asp.net...can any one help?I am new to this concept

推荐答案

.Net没有内置支持发送短信。话虽如此,这已经多次讨论和实施过了。看看谷歌,您应该能够找到适合您的示例和第三方应用程序。



asp.net发送短信 [ ^ ]
.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[^]


尝试

http://krishnasaralanet.blogspot.in/p/sending-sms-from-aspnet-application.html [< a href =http://krishnasaralanet.blogspot.in/p/sending-sms-from-aspnet-application.html\"target =_ blanktitle =New Window> ^ ]

http://shibashishdotnetocean.blogspot.in/ 2012/01 / send-sms-to-mobile-in-aspnet-using.html [ ^ ]

http://support.microsoft.com/kb/555578 [ ^ ]



互联网上提供了大量更多信息,因此只需进行搜索。
Try
http://krishnasaralanet.blogspot.in/p/sending-sms-from-aspnet-application.html[^]
http://shibashishdotnetocean.blogspot.in/2012/01/send-sms-to-mobile-in-aspnet-using.html[^]
http://support.microsoft.com/kb/555578[^]

There is tons of more information available on the internet so simply do a search.


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 [ ^ ]


这篇关于如何使用asp.net向移动设备发送消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆