How to set sAjaxSource in WebForms project?

How to set sAjaxSource in WebForms project?

XstreamINsanityXstreamINsanity Posts: 23Questions: 0Answers: 0
edited October 2011 in General
Good afternoon,

I've used the dataTables server-side processing for an MVC2 project before but this time I'm restricted to a WebForms project. Within my Default.aspx.vb file I have a function called TaskData. This function will JSON the data and output it. In my MVC2 project, the javascript was:

[code]
$(document).ready(function() {
$('#adminUnassignedTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Admin/UpdateUnassignedReviewer",
"sPaginationType": "full_numbers"
});
});
[/code]

And I thought that in this project, it would be:

[code]
$(document).ready(function () {
$('#taskTable').dataTable({
"bJQueryUI": true,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Default.aspx.vb/TaskData",
"sPaginationType": "full_numbers"
});
});
[/code]

However, that doesn't work. I've also tried "TaskData", "Default.aspx.vb/TaskData", "Default/TaskData" and I think others, but none of them hit my breakpoint when I run the project. Have you ever used dataTables in a WebForm project and if so, how did you accomplish the server-side processing? Thank you very much.

Replies

  • XstreamINsanityXstreamINsanity Posts: 23Questions: 0Answers: 0
    Nevermind. I found another thread that stated out to do it. It would be "Default.aspx/TaskData". Thanks.
This discussion has been closed.