asp.net-ajax

How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?

旧巷老猫 提交于 2019-11-25 22:18:30
问题 I have a simple key/value list in JSON being sent back to ASP.NET via POST. Example: { \"key1\": \"value1\", \"key2\": \"value2\"} I AM NOT TRYING TO DESERIALIZE INTO STRONGLY-TYPED .NET OBJECTS I simply need a plain old Dictionary(Of String, String) , or some equivalent (hash table, Dictionary(Of String, Object), old-school StringDictionary--hell, a 2-D array of strings would work for me. I can use anything available in ASP.NET 3.5, as well as the popular Json.NET (which I\'m already using

jQuery $(document).ready and UpdatePanels?

不羁的心 提交于 2019-11-25 21:57:58
问题 I\'m using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in $(document).ready . For example: $(function() { $(\'div._Foo\').bind(\"mouseover\", function(e) { // Do something exciting }); }); Of course, this works fine the first time the page is loaded, but when the UpdatePanel does a partial page update, it\'s not run and the mouseover effects don\'t work any more inside the UpdatePanel. What\'s the recommended approach for wiring