i need to develop sms to mobiles from my asp.net i have regiistered in www.clickatell.com and i got url and api_id.
plz check the following code,it seems its not working even i am not getting error and message also.
Imports System.Data
Imports MySql.Data.MySqlClient
Imports System.String
Imports System.Net
Imports System.IO
Imports System.IO.StreamReader
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
username = TextBox1.Text.ToString()
password = TextBox2.Text.ToString()
apiid = TextBox3.Text.ToString()
smsto = TextBox4.Text.ToString()
text = TextBox5.Text.ToString()
Dim client As WebClient = New WebClient
client.Headers.Add("venu", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR1.0.3705;)")
client.QueryString.Add("user", username)
client.QueryString.Add("password", password)
client.QueryString.Add("api_id", apiid)
client.QueryString.Add(to", smsto)
client.QueryString.Add("text", text)
Dim baseurl As String = "http://api.clickatell.com/http/sendmsg"
Dim data As Stream = client.OpenRead(baseurl)
Dim reader As StreamReader = New StreamReader(data)
Dim s As String = reader.ReadToEnd()
data.Close()
reader.Close()
Return
End Sub
End Class