See my previous example on getting ExtJS4 working with ASP.NET MVC3
Back when I used to work with ASP.NET AJAX Extensions 1.0 (5 year old tech), I used to do the following all the time:
JavaScript
Ext.Ajax.request({
url: ...
, jsonData: { data: form.getForm().getValues() }
...
}); // eo Ajax |
Ext.Ajax.request({
url: ...
, jsonData: { data: form.getForm().getValues() }
...
}); // eo Ajax
ASP.NET AJAX Extensions 1.0
[WebMethod(EnableSession = true)]
public static void MyWebMethod( Dictionary<string,object> data )
{
...
} |
[WebMethod(EnableSession = true)]
public static void MyWebMethod( Dictionary<string,object> data )
{
...
}
…ASP.NET AJAX Extensions 1.0 handled the conversion of data from JSON to C# Dictionary, which is a pleasure to work with. To my great disappointment, I discovered that ASP.NET MVC3, the latest and greatest, won’t do that for you! I had to find a solution…
Continue reading ExtJS4 & ASP.NET MVC3 Dictionary
VN:F [1.9.22_1171]
Rating: 9.1/10 (7 votes cast)