Saturday, January 14, 2012

C#(Write Dataset Table Json)


//copy dll’s to the project/website
  JsonHTTPHandler.dll
  Newtonsoft.Json.dll

  //import package
  using Newtonsoft.Json

  //write json in the variable
  var a = JsonConvert.SerializeObject(ds.Tables[0]);

No comments:

Post a Comment