Quote:
How to include javascript code in C# class.
Short answer: you don't.
Languages are not designed to be mixed in source code, there is only very limited exceptions.
In C/C++, you can embed assembler code, C/C++ is designed for this.
SQL is very common, but you can see any query is just a string with no syntax checking, you get the surprises at runtime.
In your case, there is another problem, both languages don't run on same computer, one is server side, the other is client side.