Mahesh Bodepudi

Mahesh Bodepudi

  • NA
  • 90
  • 56.6k

Too many characters in literal

Jul 7 2017 7:48 AM
hi,
with the below script in javascript I am getting the exception
too many characters in literal
 
var row = $('<tr>' +
'<td>' + lstItems[ind].substring(0, 3) + '</td>' +
'<td>' + '<%: Html.ActionLink(' + lstItems[ind] + ',"ReDirectToDetails", "ECU", new {ECSiD = ' + lstItems[ind] + '}) %>;' + '</td>' +
'<td>' + '<a class="delete" href="#" onclick="deleteRow(this)">Delete</a>' + '</td>' +
'</tr>');
$('#tblShipping').append(row);
 
 
Here in below statement i am getting the error.
'<td>' + '<%: Html.ActionLink(' + lstItems[ind] + ',"ReDirectToDetails", "ECU", new {ECSiD = ' + lstItems[ind] + '}) %>;' + '</td>' +
 
can any one please help me to resolve it? 
  

Answers (2)