Return JSON data from database using C# and VB.Net in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

How to get the database values to json in Asp.net C#?

Posted one year ago
SUJAYS says:
pass the database values to Json in Asp.net

 Will you please explain the above statement with more details.


Posted one year ago

How to get the database values to jaon in Asp.net C#?


Posted one year ago

Hi SUJAYS,

Use the JavaScriptSerializer class to get the database values as json string.

Refer below article. 

Return JSON data from Generic Handler in ASP.Net