Send SMS in Asp.net Code Via Using C# language
Send SMS in Asp.net Code Via Using C# language
protected void Btnsend_Click(object sender, EventArgs e)
{
send(txtUsername.Text, txtPassword.Text, txtMessage.Text, txtReceiverNo.Text);
}
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=Ultoo");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
if (responseString.Equals("1"))
{
Label1.Text = "Could not login check your username and password";
}
else
{
Label1.Text = "THE MESSAGE WAS SUCCESSFULLY POSTED";
}
respStreamReader.Close();
myResp.Close();
}
Not working this code in way2sms via...
pls help