So I\'m trying to pass a parameter to a javascript function using the razor \'@\' notation (in an MVC-4 View) but I\'m getting Syntax error: \"Unterminated string constant\"
To avoid this kind of issue, you may build all your js function call in c# code section.
Instead of:
Use:
@{ var assignFunctionCall = "AssignButtonClicked(" + item.ID + ")"; }