.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

send sms application in asp.net

Posted By: Nabin     Posted Date: February 04, 2010    Points:2   Category :ASP.Net
wht is the code for creating a webpage in asp.net,C# for sending sms to the mobile number given in the text box in the page




Thanks & Regards
Nabin

Responses
Author: Lalij Mer             
Posted Date: February 04, 2010     Points: 5   

Use this code sample

private void Send_Click(
object sender, System.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(txtMobileNo.Text.Trim(),
txtEmailId.Text.Trim(), txtMessage.Text);
else
smsWorld.sendSMS(txtEmailId.Text.Trim(),
txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(),
txtMessage.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")
txtCountryCode.Enabled = false;
else
txtCountryCode.Enabled = false;

}


More info
-----------
http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx
You will get SMS Concept from this link
--------------------------
http://www.faqshop.com/sms2003/default.htm?http://faqshop.com/sms2003/sms2k3hlinks.htm

Please Check my answer if you help....
Thank You...

Lalit.
Author: Nikhil Kumar             
Posted Date: February 05, 2010     Points: 5   

Perfect answer dude :) keep up the good work B)

Be helpful and enjoy life because it comes only onces. Give all the happiness to yours and remember it doesn't comes by money ...
Author: Nabin             
Posted Date: February 06, 2010     Points: 5   

hi
what is the namespace for Smstest????




Regards
nabin



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend