2
Answers

Too many characters in literal

Mahesh Bodepudi

Mahesh Bodepudi

7y
285
1
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)