Does the Ajax Extender control base provide dependency management? I am creating a set of controls that uses a few base scripts used by the behaviors and from here Creating a Extender Control it sort of looks i will have to include my base script in every single control code. So does the extender base serve the same script[a cached one] for each control or same script is served for each control.
For example i am developing controls that depend on jQuery. Since i am developing extender controls i will have to implement this method from the interface like below, notice the jquery script!
protected override IEnumerable<ScriptReference> GetScriptReferences()
{
ScriptReference reference = new ScriptReference();
reference.Path = ResolveClientUrl("jQuery.js");
reference.Path = ResolveClientUrl("FocusBehavior.js");
return new ScriptReference[] { reference };
}
now i will have same jquery script in another control, so does this mean they are served twice if both control are in same page? Also another question,
How do make the extender control output the production scripts instead of the debug scripts Also registering script with scriptmanager is not a option for me as i use masterpage that doesn't need a script manager.
Some Specs:
Developed in VS2005
.NET 2.0, ASP.NET 2.0
Script Dependency on Sizzle, emile.js, spine.js these are base scripts required for all controls