-
26 Jun 2012 1:35 AM #1
Call a function in C# to get json string
Call a function in C# to get json string
Hi
I have a data grid A and another grid B: When user click on a row of A, B will show a grid detail with the ID of the row clicked in A.
I have a function called GetBlogList(int rowIDofA) on server (written in C#) which will return a json string.
How can I call this function and pass the parameter when user click on a row of A?
Thank you
-
26 Jun 2012 8:09 AM #2
You should be able to make an AJAX call to the function from the grid selection event.
Scott.
-
26 Jun 2012 11:11 PM #3
-
27 Jun 2012 5:29 AM #4
This is a typical call
Scott.Code:Ext.Ajax.request({ method: 'POST', // change method if desired url: 'list.php', // your url params: { // send any parms ... prop: value }, success: function(xhr) { // response info; perform actions here }, failure: function() { alert('AJAX FAILURE: Unable to delete selected users'); } });
-
27 Jun 2012 5:44 AM #5
-
27 Jun 2012 5:46 AM #6


Reply With Quote