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(); } }