Is there a way to embed javascript code in your C# code in such a way so that it just gets passed onto the output when it's converted from C# to javascript?
In my particular example I want to add a "window.location.href = 'http://site.com'" at a particular location in my C# functions so that is gets ignored by the C# compiler but gets passed into the converted Javascript. I could edit the resulting Javascript after it's converted however but that can become cumbersome. Maybe some type of code annotations?
Thanks!