Sylonious Posted April 13, 2003 Posted April 13, 2003 (edited) 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 Edited April 13, 2003 by Sylonious Quote
*Gurus* divil Posted April 13, 2003 *Gurus* Posted April 13, 2003 You might want to check out the HttpWebRequest and WebClient classes. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Sylonious Posted April 14, 2003 Author Posted April 14, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.