views:

43

answers:

1

I'm trying to pass a javascript associative array to a controller.

I can pass normal arrays into a controller with this:

public JsonResult ProductsByFacets(List<string> facets)

but this won't work with associative arrays

+2  A: 

Check JsonValueProvider in ASP.NET MVC 2 Futures.

Sending JSON to an ASP.NET MVC Action Method Argument

takepara