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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jai80
    New Member
    • Nov 2006
    • 30

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

    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
  • karthi84
    Contributor
    • Dec 2006
    • 270

    #2
    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.
    Code:
    private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
    		{
    			if (checkBox1.Checked)
    				sms1.Open(textBox3.Text);
    			else
    				sms1.Close();
    		}
    
    		private void button2_Click(object sender, System.EventArgs e)
    		{
    		sms1.Query();		
    		}
    
    
    		private void button1_Click(object sender, System.EventArgs e)
    		{
    			sms1.Send(textBox1.Text, textBox2.Text);
    		}
    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...

    Comment

    Working...