¡@

Home 

2014/10/16 ¤W¤È 12:04:34

jquery Programming Glossary: jsondictionary

How do I pass a Dictionary as a parameter to an ActionResult method from jQuery/Ajax?

http://stackoverflow.com/questions/1077481/how-do-i-pass-a-dictionary-as-a-parameter-to-an-actionresult-method-from-jquery

a Dictionary. One thing I did in my solution is created a JsonDictionary object that inherits from Dictionary so that I can attach the.. so that I can attach the custom ModelBinder to the JsonDictionary type and it wont cause any conflicts in the future if I use.. method public ActionResult AddItems Bind Include values JsonDictionary values do something And the jQuery .post call .post Controller..

How do I pass a Dictionary as a parameter to an ActionResult method from jQuery/Ajax?

http://stackoverflow.com/questions/1077481/how-do-i-pass-a-dictionary-as-a-parameter-to-an-actionresult-method-from-jquery

Post and use a custom ModelBinder to convert the JSON to a Dictionary. One thing I did in my solution is created a JsonDictionary object that inherits from Dictionary so that I can attach the custom ModelBinder to the JsonDictionary type and it wont.. is created a JsonDictionary object that inherits from Dictionary so that I can attach the custom ModelBinder to the JsonDictionary type and it wont cause any conflicts in the future if I use Dictionary as a ActionResult parameter later on for a different.. a different purpose than JSON. Here's the final ActionResult method public ActionResult AddItems Bind Include values JsonDictionary values do something And the jQuery .post call .post Controller AddItems values Sys.Serialization.JavaScriptSerializer.serialize..