如何将数组从angular传递给VB API?

时间:2015-09-30 06:08:08

标签: angularjs vb.net api

我是VB的新手,我试图将数组值从Angular传递给VB API

var topass = [{"CodeMerch":440077,"NameMerch":"Aelpler¿ Magrone 2KG (2)","CategoryMerch":3576,"StatusMerch":null,"UnitPriceMerch":0,"UnitMerch":"g","KioskMerch":"10","ExistingIngredient":"440077","LinkedMerch":"","$$hashKey":"object:431"},{"CodeProd":"441371","NameProd":"Test Product","CategoryProd":"TIne test","StatusProd":"1","UnitPriceProd":"15","UnitProd":"","$$hashKey":"object:441"}]

这是我的代码

$.ajax({
        url: "api/postProductLink",
        type: "POST",
        data: topass,
        dataType: "json",
        success: function (result) {
            alert(result);
        }
    });

我只是想将每个值转换为API上的字符串

<HttpPost>
<POST("api/postProductLink")> _
Public Function postProductLink()
    'code here
End Function

提前致谢!

0 个答案:

没有答案