防止基础设施使用ig_common

时间:2020-10-27 17:03:08

标签: asp.net .net infragistics

我们有一个使用Infragistics组件的旧ASP.NET Web应用程序,并且需要一个虚拟目录“ ig_common”来访问javascript和图像。 有没有办法防止这种行为?而且,例如,将所有Infra的javascript和图像导入到webapp中?

1 个答案:

答案 0 :(得分:0)

对于像我们这样无法升级的人,我们从https://www.infragistics.com/community/forums/f/ultimate-ui-for-asp-net-web-forms/3797/ig_common-and-javascript/19780

找到了它

在web.config的configSections中,添加:

<section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=x.x.xxxx.x, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> 

在那之后,添加一个部分以指示必须在何处找到图像和脚本:

<infragistics.web imageDirectory="~/images/Images" javaScriptDirectory="~/scripts"/>

我希望这可以帮助其他人。