var varBindNewSalesTranGrid = ''; function BindNewSalesAttribute() { $.ajax({ type: "POST", url: "/url of Webmthod returns string", data: '{}', contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { varBindNewSalesTranGrid += data.d; }, error: function (xhr, ajaxOptions, thrownError) { } }); }
$(document).ready(function () { BindNewSalesAttribute(); alert(varBindNewSalesTranGrid); }); //Which is file referenced above .js file
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)