(THIS IS JS) $("#editBtn").click(function () { $.ajax({ url: \'/Products/Edit\', data: { ID: $(this).attr(\'data-id\')