0

I am new to ASP.NET. I have a simple hello world page and I have a select all SQL query.

Is there a way to get the result was JSON?

I want to use the query result to output the values to the page using JavaScript.

Thanks in advance

soconfusing
  • 69
  • 1
  • 3
  • Are you using C# or VB? Seems like this might hold your answers if C#: http://stackoverflow.com/questions/17398019/how-to-convert-datatable-to-json-in-c-sharp, but that is using a data table. – IrishGeek82 Jun 18 '14 at 02:07
  • I am using C# in this example – soconfusing Jun 18 '14 at 02:10
  • I think this answer should help you: http://stackoverflow.com/a/17398078/2317352. Edit: Looks like IrishGeek82 has beat me to it. – Alex Kentoyo Feb 06 '15 at 20:17

0 Answers0