public void sendSMS(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(); // request.Proxy = GlobalProxySelection.GetEmptyWebProxy(); System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream()); string responseString = respStreamReader.ReadToEnd(); respStreamReader.Close(); myResp.Close(); } protected void Button1_Click(object sender, EventArgs e) { sendSMS("9966557790", "******", txtmsg.Text, txtno.Text); ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)