C#调用javascript函数

C#调用javascript函数

问题描述:

您好,我需要一些帮助,我需要从C#服务应用程序中调用javascript函数,如果可以的话,可以给我看一些示例吗?
谢谢

Hello I need some help please, I need to call a javascript function from my C# service app, can I do that, if I can, can you show me some example please.
Thanks

如果这是一个Web应用程序,则通常在客户端从HTML页而不是从服务器端调用Javascript代码.如果您的设置不同,请解释一下-有服务器端Javascript 之类的内容,请参见 http://en.wikipedia.org/wiki/Server-side_JavaScript [ ^ ].

如果您仍未获得所需的答案,请正确标记您的问题,并更准确地解释您的问题.

—SA
If this is a Web application, Javascript code is normally called on the client side, from HTML page, not from the server side. If your settings are different, please explain it — there is such thing as the server-side Javascript, see http://en.wikipedia.org/wiki/Server-side_JavaScript[^].

If you still did not get the answer you hoped for, please properly tag your question and explain your problem more exactly.

—SA