How to bind the values we get in json object d to a gridview?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rakssham
    New Member
    • Dec 2013
    • 1

    How to bind the values we get in json object d to a gridview?

    I am getting the values in json object d as follows:

    carlos 21 Melinda 37 Andrew 41

    Now how can i bind these values to asp.net griedview?

    aspx:

    function get(strcode) {

    $.ajax({
    type: "POST",
    url: "Default.as px/MyMethod",
    data: "{'Code':'" + strcode + "'}",
    contentType: "applicatio n/json; charset=utf-8",
    dataType: "json",
    success: function (result) {
    // Here i want to bind the gridview to the values contained in d
    //also the values in d are dynamic means i am getting them from the datatable
    }
    });
    }
Working...