Connecting Tech Pros Worldwide Forums | Help | Site Map

to send and receive SMS from PC to Mobile using asp.net,C#

Newbie
 
Join Date: Nov 2006
Location: India
Posts: 30
#1: Nov 28 '06
hi Frenz,

I have been assigned the task of sending and receiving sms from pc to mobile,using asp.net,c#. would be of great help if i can get help abt the concept behind this task and some code snippet. I came across few posts and articles on this topic but not able to get a clear picture. Frenz help me with the concept and code. Thanks in advance. Have a great day!

Cheers,
jai

Needs Regular Fix
 
Join Date: Dec 2006
Location: chennai
Posts: 270
#2: Dec 22 '06

re: to send and receive SMS from PC to Mobile using asp.net,C#


hi jai,
this can be easily done by using .net frame work 2.0. it has a lot of inbuilt features for this. i think this code may be useful for u which i got when i was searching for me.
Expand|Select|Wrap|Line Numbers
  1. private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
  2.         {
  3.             if (checkBox1.Checked)
  4.                 sms1.Open(textBox3.Text);
  5.             else
  6.                 sms1.Close();
  7.         }
  8.  
  9.         private void button2_Click(object sender, System.EventArgs e)
  10.         {
  11.         sms1.Query();        
  12.         }
  13.  
  14.  
  15.         private void button1_Click(object sender, System.EventArgs e)
  16.         {
  17.             sms1.Send(textBox1.Text, textBox2.Text);
  18.         }
  19.  
  20.  
here the check box is to enable connection with the mobile through a specified port which is obtained using textBox3.

button 2 is used to test whether the querry modem is working or not.

button 1 is used for sending the sms.

check it out. regards.... have a good day...
Reply