Feb 05, 2011, 6:05 PM
How do you add a resource item
I'm loading a ascx control through a tab using autoload.
In the ascx file, i want to require a bunch of javascript from YUI. Is this possible? Can i add it to the resource manager?
If so, what would be the syntax?
In the ascx file, i want to require a bunch of javascript from YUI. Is this possible? Can i add it to the resource manager?
If so, what would be the syntax?
Ext.Net.ResourceManager.AddInstanceScript?
Ext.Net.ResourceManager.RegisterControlResources.AddInstanceScript?
I want to add the following scripts.<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.2r1/build/assets/skins/sam/skin.css" />
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&2.8.2r1/build/element/element-min.js&2.8.2r1/build/button/button-min.js&2.8.2r1/build/connection/connection-min.js&2.8.2r1/build/container/container-min.js&2.8.2r1/build/datasource/datasource-min.js&2.8.2r1/build/datatable/datatable-min.js&2.8.2r1/build/tabview/tabview-min.js&2.8.2r1/build/uploader/uploader-min.js"></script>
I'm hoping to use the resource manager because then hopefully it will wait for those scripts to load. Just putting the above code at the top of ascx control doesn't work.
Last edited by geoffrey.mcgill; Feb 05, 2011 at 6:41 PM.
Reason: please use [CODE] tags