Click here to Skip to main content
16,004,977 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: placing a control on the panel Pin
lavankumar28-Jun-09 19:34
lavankumar28-Jun-09 19:34 
AnswerRe: placing a control on the panel Pin
vijaylumar26-Jun-09 0:47
vijaylumar26-Jun-09 0:47 
GeneralRe: placing a control on the panel Pin
Christian Graus26-Jun-09 0:51
protectorChristian Graus26-Jun-09 0:51 
Questionhelp me Pin
harieshkumar.n25-Jun-09 21:24
harieshkumar.n25-Jun-09 21:24 
AnswerRe: help me Pin
Christian Graus25-Jun-09 21:46
protectorChristian Graus25-Jun-09 21:46 
QuestionWebrequest and Querystring in VB.net Pin
king gamo25-Jun-09 18:12
king gamo25-Jun-09 18:12 
AnswerRe: Webrequest and Querystring in VB.net Pin
Christian Graus25-Jun-09 18:44
protectorChristian Graus25-Jun-09 18:44 
GeneralRe: Webrequest and Querystring in VB.net Pin
king gamo25-Jun-09 18:54
king gamo25-Jun-09 18:54 
i use the following to get it but i don think its right.

<
Public Sub GetNewMsg()
Dim sOutput As String
Dim sURL As String = "http://www.something.com/noticeboard"
Try
Dim objNewRequest As WebRequest = HttpWebRequest.Create(sURL)
Dim objResponse As WebResponse = objNewRequest.GetResponse

Dim objStream As New StreamReader(objResponse.GetResponseStream())
sOutput = objStream.ReadToEnd()

Dim message_originator As String = context.request.querystring("from")
Dim message As String = context.request.querystring("text")

'place code to read specific string token you need here
'for example code to insert into database etc. just see what you have in the
'string if fetch was successful and then you'll know how to readi specific string

Catch eUFE As UriFormatException
sOutput = "Error in URL Format: [" & sURL & "]" & NewLine() & eUFE.Message
Catch eWEB As WebException
sOutput = "Error With Web Request: " & NewLine() & eWEB.Message
Catch e As Exception
sOutput = e.ToString
Finally
MessageBox.Show(sOutput)
End Try

End Sub
>
Is it possible for you to write a small function that accepts data from a url into a winforms app the right way cos mine is just not working!

It is not who i am underneath but what i do that defines me!

modified on Friday, June 26, 2009 1:09 AM

GeneralRe: Webrequest and Querystring in VB.net Pin
Christian Graus25-Jun-09 19:41
protectorChristian Graus25-Jun-09 19:41 
GeneralRe: Webrequest and Querystring in VB.net Pin
king gamo25-Jun-09 19:44
king gamo25-Jun-09 19:44 
GeneralRe: Webrequest and Querystring in VB.net Pin
Christian Graus25-Jun-09 19:49
protectorChristian Graus25-Jun-09 19:49 
GeneralRe: Webrequest and Querystring in VB.net Pin
king gamo25-Jun-09 19:51
king gamo25-Jun-09 19:51 
GeneralRe: Webrequest and Querystring in VB.net Pin
Christian Graus25-Jun-09 20:08
protectorChristian Graus25-Jun-09 20:08 
GeneralRe: Webrequest and Querystring in VB.net Pin
N a v a n e e t h25-Jun-09 19:53
N a v a n e e t h25-Jun-09 19:53 
GeneralRe: Webrequest and Querystring in VB.net Pin
king gamo25-Jun-09 20:00
king gamo25-Jun-09 20:00 
GeneralRe: Webrequest and Querystring in VB.net Pin
Christian Graus25-Jun-09 20:05
protectorChristian Graus25-Jun-09 20:05 
GeneralRe: Webrequest and Querystring in VB.net Pin
king gamo25-Jun-09 20:15
king gamo25-Jun-09 20:15 
GeneralRe: Webrequest and Querystring in VB.net Pin
Christian Graus25-Jun-09 20:59
protectorChristian Graus25-Jun-09 20:59 
GeneralRe: Webrequest and Querystring in VB.net Pin
N a v a n e e t h25-Jun-09 20:10
N a v a n e e t h25-Jun-09 20:10 
QuestionHow to send sms to mobile phone?? Pin
s42625-Jun-09 7:13
s42625-Jun-09 7:13 
AnswerRe: How to send sms to mobile phone?? Pin
Henry Minute25-Jun-09 8:26
Henry Minute25-Jun-09 8:26 
GeneralRe: How to send sms to mobile phone?? Pin
Jon_Boy25-Jun-09 8:41
Jon_Boy25-Jun-09 8:41 
QuestionRe: How to send sms to mobile phone?? Pin
s42625-Jun-09 9:31
s42625-Jun-09 9:31 
AnswerRe: How to send sms to mobile phone?? Pin
EliottA25-Jun-09 9:45
EliottA25-Jun-09 9:45 
AnswerRe: How to send sms to mobile phone?? Pin
s42625-Jun-09 9:56
s42625-Jun-09 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.