Hello
I want the internal java code extract to a java file. In a normal ASP.NET app I copy the code into the js-file and append the reference to this in the aspx; like this:<script type="text/javascript" src="App_JavaScriptFiles/global.js" />
But when I do this with the infragistics library I always get the following error:Run-time error in Microsoft BLOCKED SCRIPT Sys.ArgumentException: Value must not be null for Controls and Behaviors.Parameter name: elementin the ScriptResource.axd in the function:$create = $type.create = function Component$create(type, properties, events, references, element) {....if (e) throw e;if (type.inheritsFrom(Sys.UI.Behavior) || type.inheritsFrom(Sys.UI.Control)) { if (!element) throw Error.argument('element', Sys.Res.createNoDom); .....
I simply don't understand what is wrong with this. In standard ASP.NET the script works correctly. And if I copy the code into the aspx file as inline script it's works also.
What I made wrong with this declaration?
Regards
Xaver
xbu58,
Let us know if you need further assistance with this matter.
Thanks,
Hello xbu58,
You can set EnableEmbeddedJavaScript property for the respective control that you do not want scripts to be rendered down to the client.
However the control to be functional you have to add the scripts manually to the page. All scripts are located in you installation directory e.g
C:\Program Files (x86)\Infragistics\NetAdvantage (Version)\ASP.NET\CLR4.0\Scripts
Hello Duane
No I want extract the javacode from a ASPX subpage into a physical file. In this subpage I have a lot of code to load dynamicly photo galleries in to the web site over webservices. What concerns me is just about a better readable and clarity source code. And that is by the embedded code in the ASPX code not well.
Is that a way to change this?
For the controls by default uses WebResource.axd handlers for providing JavaScript code on the client browser. Are you wanting to reference the client code for the UltraWebMenu as a physical JavaScript file?
Let me know if you have any questions with this matter. Thank you.