Sumit Kumar Sinha

Sumit Kumar Sinha

  • NA
  • 159
  • 80.1k

sending message in asp.net

Nov 7 2012 4:12 AM
I wrote the following code for sending the sms, but it's not working...pl,z suggest me any other option

protected void btnsubmit_Click1(object sender, EventArgs e)     {         string senderusername = txtsenderid.Text;         string senderpwd = txtpwd.Text;         string msg = txtmsg.Text;         string phonenumber = txtnumber.Text;         string senderid = txtsenderid.Text;         string sURL;         StreamReader objReader;         sURL = "http://api.fastalerts.in/fastclient/SMSclient.php?username=" + senderusername + "&password=" + senderpwd + "&message=" + msg + "&numbers=" + phonenumber + "&senderid=" + senderid;   System.Net.WebRequest wrGETURL;         wrGETURL = System.Net.WebRequest.Create(sURL);         try         {             Stream objStream;             objStream = wrGETURL.GetResponse().GetResponseStream();             objReader = new StreamReader(objStream);             objReader.Close();         }         catch (Exception ex)         {             ex.ToString();         }     }

Answers (2)