<asp:Label id="lblRequest" runat="server" />
Then, in the Page_Load event handler:
' display the values in the Request collections
lblRequest.Text &= "* QueryString collection:<br />"
For Each oValue As String In Request.QueryString
lblRequest.Text &= " " & oValue & " = " _
& Request.QueryString(oValue) & "<br />"
Next
lblRequest.Text &= "* Form collection:<br />"
For Each oValue As String In Request.Form
lblRequest.Text &= " " & oValue & " = " _
& Request.Form(oValue) & "<br />"
Next
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:O8**************@TK2MSFTNGP15.phx.gbl...
Hi
Is there an asp.net equivalent of the following code in the context of a
form?
for i = 1 to Request.Form.Count
strMsgInfo = strMsgInfo & Request.Form.Key(i) & ": " &
Request.Form.Item(i) & vbCrLf & vbCrLf
next
Thanks
Regards