We have an old ASP.NET web application that’s using Infragistics components, and needs a virtual directory “ig_common” to access javascripts and images.
Is there a way to prevent this behavior? And, for example, import all Infra’s javascripts and images in the webapp?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
For those like us who can’t upgrade, we’ve found this from: https://www.infragistics.com/community/forums/f/ultimate-ui-for-asp-net-web-forms/3797/ig_common-and-javascript/19780
In web.config, in the configSections, add:
<section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=x.x.xxxx.x, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
After that, add a section to indicate where the images and scripts have to be found:
<infragistics.web imageDirectory="~/images/Images" javaScriptDirectory="~/scripts"/>
I hope this can help others.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0