DATATABLES WITH ASP.NET WEBFORMS

DATATABLES WITH ASP.NET WEBFORMS

f.dalpozzof.dalpozzo Posts: 8Questions: 0Answers: 0
edited February 2010 in General
Hi all, i'm implementing a simple CRUD interface for managing data with ASP.NET 3.5 WEBFORMS.
I use JSON notation for returning data.
I tried to list some data using parameters "sAjaxSource", but nothing good.
How can I do?

Thanks in advance

[code]
...
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/handlers/LoadTipiColture.asmx/getTipiColture",
"fnServerData": function(sSource, aoData, fnCallback) {
$.ajax({
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
});
}
...
[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Not quite sure what the problem is. Are you saying that the above code doesn't work for you, or you want to add parameters to the sending data, or something else?

    Allan
  • f.dalpozzof.dalpozzo Posts: 8Questions: 0Answers: 0
    I'm sorry for the bad English. My unfulfilled dream has always been to live for a time in England.
    The code I posted does not work and the grid stay blank.
    My goal is to build a grid compatible with the ASP.NET 3.5 WebForm with
    - insert feature
    - edit
    - delete
    using Ajax.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Okay - it's a good goal :-). So if you view your Ajax return (using Firebug or something like that), does the JSON look like you would expect? Also does it pass http://jsonlint.com ?

    Allan
This discussion has been closed.