如何在c#中以windows形式在Web浏览器控件中启用javaScript? [英] How to enable javaScript in web browser control in windows form in c#?

查看:21
本文介绍了如何在c#中以windows形式在Web浏览器控件中启用javaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 asp.net 中有应用程序.我想以窗口形式在网络浏览器控件中打开它.我只是通过在浏览器的属性中提供 url 来运行它.它成功运行.但是我的 javascrpit 文件不起作用.

I have application in asp.net. I want to open it in web browser control in window form. I run it by just giving the url in the properties of browser. It successfully runs. But my javascrpit file does not work.

有人可以帮助我了解 javascript 将如何工作吗?

Can anybody help me in this regarding how javascript will work?

谢谢

推荐答案

WebBrowser 控件没有这样的属性来设置启用或禁用 javascript.如果您想启用/禁用 javascript,您可以在 Windows 系统的 Internet Security 选项中启用/禁用它.该选项可以在下面找到:控制面板 -> Internet 选项 -> 安全

WebBrowser control doesn't have such property to set to enable or disable javascript. If you want to enable/disable javascript, you can enable/disable it in your Internet Security option in the Windows system. That option can be found as below: Control Panel -> Internet Options -> Security

http:///social.msdn.microsoft.com/Forums/en-US/winforms/thread/3264223f-d5c0-4c1a-b550-3621ca17635f/

最好的问候.

这篇关于如何在c#中以windows形式在Web浏览器控件中启用javaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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