jeudi 23 avril 2015

I would like to pass a Dictionary> to client use java script code.

I did look at this post and i didn't understand exactly how to proceed. In case i'm doing something wrong i'll explain what i want to do. The Dictionary contain in the "Key" the names of all worksheets in the excel file, and in the "Value" all the column value of the first row in that worksheet. The UI of the client should have two "drop list", the first will contain the "Key" which is all the names of the "Worksheets" in the excel file. The second contain all the column value of the first row of the worksheets that will choose in the first drop list – which is actually a List as the "Value" in the dictionary.

So all the back end c# code working fine. Now I need help in the front end java script code. How do I parse the data to a key value thing so i can do a "search" on the keys as the client choose some "key" in the first drop list so i can get back the relevant values as list.

Thanx!

   var ajaxRequest = $.ajax({
        type: "POST",
        url: "http://localhost:1894/api/Values",
        contentType: false,
        processData: false,
        data: data,
        success: function(dataTest) {

        }
    });




Aucun commentaire:

Enregistrer un commentaire