So I'm trying to use this javascript with my asp.net website https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart
I have an array in codebehind that has my data which i converted to a multidimensional datatable like this.
<in codebehind vb> Public Property datat As DataTable For outerIndex As Integer = 0 To 2 Dim newRow As DataRow = table.NewRow() For innerIndex As Integer = 0 To 2 newRow(innerIndex) = Array(outerIndex, innerIndex) Next table.Rows.Add(newRow) Next datat = table <in asp> function drawChart() { var data = <%=datat%>
I always get an error datatable not defined.
I'm confused the above code I have is converting it into a datatable.