Has anyone been able to get DataTables to work with a WebForm?

Has anyone been able to get DataTables to work with a WebForm?

slim007slim007 Posts: 3Questions: 2Answers: 0

Hello,

I am new to DataTables and I was trying to see if I could get DataTables to work with a webform. Has anyone been able to do it? I have been able to see DataTables working with just plain html but not with a webform, i.e. .aspx file.

Any comments or advise would be appreciated.

Answers

  • tangerinetangerine Posts: 3,342Questions: 35Answers: 394

    A forum search for "webform" or "aspx" finds numerous references.

  • slim007slim007 Posts: 3Questions: 2Answers: 0

    Yes, I have searched for "webform" and "aspx" words. I am having issues with the setup for the datatables functionality. I included all the .js and .css files, and added the
    $(document).ready(function () {
    $('#example').DataTable();
    });

    but I am getting an error:
    Unhandled exception at line 2, column 31689 in http://localhost:../js/jquery-3.2.1.min.js
    0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'DataTable'.

    If anyone has any suggestions, I would appreciated it.

    Thanks!

  • kthorngrenkthorngren Posts: 20,143Questions: 26Answers: 4,736

    My guess is that you are loading jQuery multiple times.

    Kevin

This discussion has been closed.