tags:

views:

78

answers:

3

What are the ways to retrieve data submitted to the web server from a form in the client HTML in ASP.NET?

A: 

In VB.NET

For POST requests:

value = Request.Form("formElementID")

For GET requests:

value = Request.QueryString("formElementID")
Adam
+1  A: 

You can also search through both the Form and QueryString collections at the same time so that the data will be found regardless of the the request method.

value = Request("formElementID")
palehorse
A: 

Note, everything about the request is available in the request, check out the Request class, you'll be amazed how much information is actually available to you.

Rob Cooper