1

in asp.net c#

how can you get all the names and values of a form that has been posted? i.e the field names are unkown.

raklos
  • 27,188
  • 58
  • 181
  • 291

1 Answers1

12

Loop over all the items in Request.Form.

-- Edit:

Like so:

foreach(string key in Request.Form){
    Response.Write(key + "=" + Request.Form[key]);
}
Noon Silk
  • 52,938
  • 6
  • 85
  • 103