Hi again,
these were missing :
@using System.Data;
@using System.Collections.Generic;
@using System.Data.SqlClient;
But it still doesn't work.
I (think) I managed to copy SQL table to DataTable of c# by :
@using System.Data;
@using System.Collections.Generic;
@using System.Data.SqlClient;
@{
Layout = null;
string connectionString="Server=xxx.xxx.xxx.xxx; Database=HEK; Uid=sa;
Pwd=xxxxx";
DataTable dt = new DataTable();
using (SqlConnection conn = new SqlConnection(connectionString))
{
conn.Open();
using (SqlDataAdapter adapter = new SqlDataAdapter("SELECT Sava, rpws1
FROM VWS WHERE ID > 2200", conn))
{
adapter.Fill(dt);
};
};
Now i'd have to pass it to Google charts, to draw the plot... ?
Of course this doesn't work :
var data = google.visualization.arrayToDataTable(@dt);
Do you have any ideas on this...i am reaaaally lost here...
Tnx
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.