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
2010-08-16 16:03:51