将代码后面的数据存储到ASP.Net中的javascript中

时间:2017-08-25 07:23:47

标签: javascript asp.net arrays arraylist

我有这样的代码:

 Dim ListMyDate = New List(Of MyDate)()

        Dim cek As Date = "2017/10/15","2017/10/16"
        ListMyDate.Add(New MyDate() With {.ShowDate = cek})

    allRecords = ListMyDate.ToArray()

    For Each obj As MyDate In ListMyDate
        Response.Write(obj.ShowDate.ToString() + ",")
    Next

此代码适用于我,但我希望将数据的存储数据结果发送到javascript。

0 个答案:

没有答案