Although there may be similar questions here, none of them are asking the exact same thing as mine.
For my ASP.NET MVC4 project, I have decided to use aspx as my view engine. Within my views, I have integrated a JavaScript code that takes a table of values as input and generates a graph based on those values.
The values I need for the graph are fetched from my database using the following query:
var query = from b in db.SchoolTestsPerModulePerStudent
where b.StudentID.Equals(2)
select b;
So, my current challenge is to take the results of this query and split them into two arrays - one containing the test id and the other containing the student's grade. While I haven't figured out how to do this yet, I am hoping to find a solution soon. Once I have these arrays, I'm wondering what the most efficient and clear method would be to pass them from C# to JavaScript.