how to pass a table member having mobile number to URL to send SMS through a gateway
Revision 2
I have a table with a table column named as 'phone'. It holds mobile number.
I assign this 'phone' to a variable v_phone. I used the following code to send the
sms. It is not working.
string v_phone = ds3.Tables[0].Rows[i]["phone"].ToString();
WebClient client = new WebClient();
string baseurl = "http://sms.ssdindia.com/sendhttp.php?user=rajnamm&password=298426&mobiles=v_phone&message=hello&sender=test";
Stream data = client.OpenRead(baseurl);
StreamReader reader = new StreamReader(data);
string s = reader.ReadToEnd();
data.Close();
reader.Close();
If I use the exact mobile number in place of that variable, it is working. Can anyone help me out.
Posted 28-Dec-12 21:28pm
by
S.Rajendran from Coimbatore.