vbnet Get PostData

If Request.TotalBytes() > 0 Then
	Dim PostInputStream As New System.IO.StreamReader(Request.InputStream)
	Dim PostData As String = PostInputStream.ReadToEnd()

	'return/save posted Xml - could log to file or do something with it
	Response.Write("You posted:" & PostData)
Else
	'no data received
	Response.Write("No data posted to this page!")
End If
Retrieves data posted to a web page.

Updated: Saturday 9th October 2010, 10:37pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.