C#调用javascript函数 [英] C# calling a javascript function

查看:77
本文介绍了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


这篇关于C#调用javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆