Last post Mar 31, 2012 06:32 PM by demoxx
Mar 29, 2012 12:08 PM|demoxx|LINK
For start, sorry if this is wrong forum.
Im trying to send data from a Windows Form to an aspx page and send back a response.
Im running around in circles trying to make this work.
The data im trying to send is 4 strings.
So fare I have this in my code, using the build-in webclient in visual studio 2010, in the windows form sending to the aspx
If I use below code, in the aspx, im able to handle POST information
Dim Param() As Byte = Request.BinaryRead(HttpContext.Current.Request.ContentLength)
Dim strRequest As String = Encoding.ASCII.GetString(Param)
But if I use below code, in the aspx page, V1 and rest, is empty, why?
Mar 30, 2012 05:34 AM|Mauro_net|LINK
webclient1.Headers["Content-type"] = "application/x-www-form-urlencoded";
before the call
Mar 31, 2012 06:32 PM|demoxx|LINK
Im not sure what was wrong, but i think that what sovled it to use uploadvalues if I want to be able to access request.form values,
AND to upload a namevaluecollection and not a string.