JavaScript无法正常工作我的ASP.Net项目 [英] JavaScript is not working my ASP.Net project

查看:71
本文介绍了JavaScript无法正常工作我的ASP.Net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

适用于您是否可以解决我的以下问题.


JavaScript无法在我的ASP.Net项目中运行.

以前它在工作.

我在IE中启用了脚本.

但是,.Net中是否有任何设置可以启用Javascript.




谢谢
Shahnawaz

Appriciate if u can solve my below problem.


JavaScript is not working my ASP.Net project.

previously it was working.

I enabled the script in IE.

But, is there is any setting in .Net for enabling Javascript.




Thanx
Shahnawaz

推荐答案

要仅允许在Web站点上编写脚本,并在Internet区域中保留禁用脚本的功能,请将Web站点添加到受信任的站点"区域. > 1.在工具"菜单上,单击"Internet选项",然后单击安全性"选项卡.
2.单击Internet区域.
3.如果不必自定义Internet安全设置,请单击默认级别".然后执行步骤4
4.如果必须自定义Internet安全设置,请按照下列步骤操作:
一个.单击自定义级别.
b.在安全设置-Internet区域"对话框中,在脚本"部分中单击启用活动脚本".
单击后退"按钮返回到上一页,然后单击刷新"按钮运行脚本.

参考:
如何在浏览器中启用脚本 [
To allow scripting on a Web site only, and to leave scripting disabled in the Internet zone, add the Web site to the Trusted sites zone.
1. On the Tools menu, click Internet Options, and then click the Security tab.
2. Click the Internet zone.
3. If you do not have to customize your Internet security settings, click Default Level. Then do step 4
4. If you have to customize your Internet security settings, follow these steps:
a. Click Custom Level.
b. In the Security Settings – Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
Click the Back button to return to the previous page, and then click the Refresh button to run scripts.

Refer:
How to enable scripting in your browser[^]

Apply the setting as mentioned in it.


JavaScript在您的项目中不起作用是什么意思?脚本是否可能未加载/是否有错误?测试此问题的简单方法是在您的网页上包含一个noscript部分,并查看该部分是否在运行时呈现出来.如果未呈现出来,则启用了脚本编制,问题出在其他方面.
What do you mean by javascript not working in your project? Is it possible that the script is not getting loaded/that it''s erroring? The easy way to test this is to have a noscript section to your web page and see if that gets rendered out at runtime. If it does not get rendered out then the scripting is enabled and the problem is something else.


这篇关于JavaScript无法正常工作我的ASP.Net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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