2

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

1

1 Answer 1

3

Check JsonValueProvider in ASP.NET MVC 2 Futures.

Sending JSON to an ASP.NET MVC Action Method Argument

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.