Is it possible or is there a workaround to use Razor syntax within JavaScript that is in a view (cshtml)?
cshtml
I am trying to add markers to a Google map...
I finally found the solution (*.vbhtml):
function razorsyntax() { /* Double */ @(MvcHtmlString.Create("var szam =" & mydoublevariable & ";")) alert(szam); /* String */ var str = '@stringvariable'; alert(str); }