I\'d like to use razor syntax inside my Javascript files. Is this possible without including the javascript inline into the page?
You can set the value in hidden field in yout cshtml file , and then in your javascript files you can access the hidden field.