How can I enumerate through all the key/values of a FormCollection (system.web.mvc) in ASP.NET MVC?
I use this:
string keyname; string keyvalue; for (int i = 0; i <= fc.Count - 1; i++) { keyname = fc.AllKeys[i]; keyvalue = fc[i]; }
hope it helps someone.