Hi,
I have a http command to query the number of SMS left in my account. When i hit the following address in the address bar i get the result as 'Your balance is 642' in the web page.
http://www.mlmsms.in/balancecheck.ph...=your_password
I am using the following code to extract this information and use it in my project but somehow cannot figure out why i am not getting the result in 'Label19'. Please Help!
Code:Dim url As New System.Uri("http://www.mlmsms.in/balancecheck.php?username=your_username&password=your_password") 'Request for request Dim req As System.Net.WebRequest req = System.Net.WebRequest.Create(url) Dim resp As System.Net.WebResponse Try resp = req.GetResponse() Me.Label19.Text = resp.ToString resp.Close() req = Nothing Catch ex As Exception req = Nothing End Try




Reply With Quote