Submiting Web Forms using Visual Basic

Sylonious

Freshman
Joined
Apr 12, 2003
Messages
27
I want to allow my VB.Net Windows Applications to sumbit a web form on-line using ASP on the server. I know it would be some sort of post command but I can't find any documentation on it. Would I have to implement Javascript into my Vb.Net ? If so how do I do it?
I actually need it to send particualr commands to an ASP file from a Visual Basic .Net application.
http://www.brinkster.com/default.asp
 
Last edited:
That is what I got.

Dim url As String = useasp.Text
Dim result As String = ""
Dim myBytes() As Byte
Dim myWebClient As New System.Net.WebClient()
Dim myParameterTable As New Collections.Specialized.NameValueCollection()

With myParameterTable
.Add("form_address", "Value = " & T.Text)
.Add("Street Address", "Value = " & f.Text)
.Add("r", "Value = " & R.Text)
.Add("s", "Value = " & "s.text")
.Add("b", "Value = " & "b.text")
End With
myBytes = myWebClient.UploadValues(url, "POST", myParameterTable)
result = System.Text.Encoding.ASCII.GetString(myBytes)
result = ResultField.Text
End

----------------------------------
I am actually trying to fill out a CGI from using Visual Basic .Net
 
Back
Top