Nov 21, 2013, 4:39 PM
Hi,
Apologies for my delayed reply. I think your comments don't match your explanation further below?
To me it seems that ResourceMode.Script will include the Ext.NET initialization script straight after the core Ext.NET scripts, and your subsequent scripts and other things in the head tag will follow.
With ResourceMode.ScriptFiles, it seems that the Ext.NET initialization script will be added to the end of the head so that your own scripts and other tags in the head section can be added before that (but after the Ext.NET initialization scripts).
If that is right, then I'd suggest something like this, maybe?
Thanks,
Anup
Apologies for my delayed reply. I think your comments don't match your explanation further below?
To me it seems that ResourceMode.Script will include the Ext.NET initialization script straight after the core Ext.NET scripts, and your subsequent scripts and other things in the head tag will follow.
With ResourceMode.ScriptFiles, it seems that the Ext.NET initialization script will be added to the end of the head so that your own scripts and other tags in the head section can be added before that (but after the Ext.NET initialization scripts).
If that is right, then I'd suggest something like this, maybe?
public enum ResourceMode
{
/// <summary>
/// Renders the Ext.NET and ExtJS CSS styles.
/// </summary>
Style,
/// <summary>
/// Renders the Ext.NET and ExtJS JavaScript files and the Ext.NET initialization script together
/// </summary>
Script,
/// <summary>
/// Renders the Ext.NET and ExtJS JavaScript files but renders the Ext.NET initialization script at the end of the head tag, allowing you to insert your own html (such as your own script) in between
/// </summary>
ScriptFiles
}
I think I got that the right way round...? :)Thanks,
Anup