------------------------------------------------ Learn throughout life
____________ www.flickr.com/photos/psdesigner/
Include two namespaces in your page. 1)using System.Net; 2)using System.IO; --Then copy below send function into your page. public void send(string uid, string password, string message, string no) { HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms"); HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse(); System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream()); string responseString = respStreamReader.ReadToEnd(); respStreamReader.Close(); myResp.Close(); } --Then double click on send button protected void Button1_Click(object sender, EventArgs e) { //only change yourmobileno and //yourpassword below send("yourmobileno", "yourpassword", TextBox2.Text, TextBox1.Text); //TextBox2.Text for message and TextBox1.Text //for reciever no }
Life is a Race Thanks & Regards By Sabari Mahesh P M
Login to post response