using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net.Mail; using System.Net; using System.IO; public partial class Default4 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } 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("8985389809", "1435", 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)