views:

21

answers:

1

Is there a JSON equivalent for FormCollection form as a POST action parameter? I have a dynamically generated number of fields that I need to post back via JSON.

A: 

You can simply serialize a NameValueCollection from your FormCollection, using the new NameValueCollection(NameValueCollection) constructor. That is all a FormCollection is, after all.

Nathan Taylor