Bind gridview through jquery/javascript
I want to bind gridview throgh jquery/javascript .Reason is I am calling web api through jquery ajax calls, and want to show the results in gridview.
here gvdata is gridview and objData is the (var objData = $.parseJSON(jsonData);)
$("#gvData").append("<tr><td ><img src='data:image/jpeg;base64,{'" + objData.barrFile + "'}' alt='picture' border=3 height=100 width=100></img></td><td>" + objData.firstlName + "</td><td>" + objData.lastName + "</td><td>" + objData.email + "</td><td>" + objData.phone + "</td><td>" + objData.isActive + "</td><td>" + objData.clubNumber + "</td></tr>");
I am not able to show the image in 'td',if i hardcode the image url then it is working fine
if i give src='data:image/jpeg;base64,{'" + objData.barrFile + "'} it is not working,i mean it is not parsing correctly.
Can anybody suggests the answer?
Thanks