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; } }
Wednesday, May 30, 2012
How to send SMS to Mobile using web application ASP.Net & C#?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment