sf.
sf.

Reputation: 25510

ASP.Net MVC - Send Javascript Associative array to a controller

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

Upvotes: 2

Views: 1444

Answers (1)

takepara
takepara

Reputation: 10433

Check JsonValueProvider in ASP.NET MVC 2 Futures.

Sending JSON to an ASP.NET MVC Action Method Argument

Upvotes: 3

Related Questions