Im posting some data from another page using a form with the method post. What i would like to know is: Whats the best way to get the values. Going by eacn name in the form as
Request["name"]
Or is there any way to get a collection of the data and itterate through it? Thanks
You can write
foreach (string key in Request.Form)
You may also want if (Request.HttpMethod == "POST") or if (Request.Form.Count > 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With