Discussion on ASP.NET JQuery Datatables Server Side Integration

webyacusa

webyacusa supports this item

Supported

23 comments found.

Hi!

This work excellent in Web Forms. But how to ‘convert’ it to the MVC environment correctly?

An MVC version is on the works, stay tuned.

Hi

webyacusa

Just purchased few minutes back. I was exploring the sample and its wonderful but I noticed an issue, please advice and contact me regarding it.

The issue is :

Anyone can easily use .ashx publicly :shocked: , and can do all CRUD which make it not secure.

Just use any tool like postman and use the details below

$.ajax({ method: "POST", url: "handlers/DeleteCustomer.ashx", dataType: "json", async: true, data: { Id: id }, success: function (result) {*************} }, error: function (xhr, ajaxOptions, thrownError) {*********} })

please advice.

Hi, thank you for your observation. This was actually meant as a sample more than to be used straight in a production environment. So, this should be taken as an starting point. Ideally, you want to put your code behind some sort of authentication schema, but that is beyond the project scope. Hope that helps,

Hi webyacusa,

Just purchased few minutes back. I was exploring the sample and its wonderful but I noticed an issue, please advice and contact me regarding it.

The issue is :

Anyone can easily use .ashx publicly :shocked: , and can do all CRUD which make it not secure.

Just use any tool like postman and use the details below

$.ajax({ method: “POST”, url: “handlers/DeleteCustomer.ashx”, dataType: “json”, async: true, data: { Id: id }, success: function (result) {*} }, error: function (xhr, ajaxOptions, thrownError) {***} })

please advice.

by
by
by
by
by
by