Datatable to String or Array? RRS feed

  • Question

  • User1225369314 posted

    Hi, have a JSON ajax request from my page like this:

            $(document).ready(function () {
                    type: "POST",
                    url: "Helper.asmx/GetMyValues",

    In my Helper.vb code I've created a datatable from an MS Access Database table, the data in it looks like this:

    AreaName, AreaValue
    FR-J, 1.5
    FR-G, 2

    from the datatable how could I create a string like this


    To return my values back to the JSON request?

    Many thanks

    Saturday, July 6, 2013 4:04 AM

All replies