Is there a way to integrate C# code into a JavaScript statement?
Below is an example of the code I am trying to use:
document.getElementById('part1').innerHTML = '' +
'@Html.Partial("SelectCustomer.Views")'
' Views';
I have found that
@Html.Partial("SelectCustomer.Views")
, as well as <%=
and %>
, do not seem to work in this context.