0
You can write Vb code inside a file that looks like . js?
For example:
arquivo teste.js
var testeEvento = function () {
<%=MsgBox("teste")%>;
};
I tried this way it didn’t work it returns me that:
Uncaught SyntaxError: Unexpected token <
And when executing:
Uncaught ReferenceError: testeEvento is not defined
at <anonymous>:1:1
Possible duplicate of How to use a language other than Javascript in the browser?
– Denis Rudnei de Souza
It’s like wanting to use
c#
in a.java
, It doesn’t happen unless you sue thisjs
as a fileT4
on the server side and send to the compiled screen.– Lucas
tendi nada mano
– Jhonatan Jorge de Lima
No, it’s not possible.
– Daniel Junior