Reputation: 28848
What are the ways to retrieve data submitted to the web server from a form in the client HTML in ASP.NET?
Upvotes: 0
Views: 225
Reputation: 27476
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")
Upvotes: 4
Reputation: 28848
In VB.NET
For POST requests:
value = Request.Form("formElementID")
For GET requests:
value = Request.QueryString("formElementID")
Upvotes: 0