protected void Button2_Click(object sender, EventArgs e) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri(&"site name";); // Add an Accept header for JSON format. client.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue("application/json")); HttpResponseMessage response = client.GetAsync("user/view.json?api_public=M01&api_secret=1;api_name=ezd").Result; if (response.IsSuccessStatusCode) { // Parse the response body. Blocking! string matchIdToFind = "26"; var product = response.Content.ReadAsAsync<JObject>().Result; JObject match = product; GridView1.DataSource = match; GridView1.DataBind(); } else { TextBox3.Text = "errror"; } }
GridView1.DataSource
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)