I am trying to create a WebControl dll. There is a common.js file in the dll. It is shared bewteen all WebControls.
If I simply add the script reference using
ScriptManager.Scripts.Add( ....) or implementing GetScriptReferences function of IScriptControl. Duplicate script reference will be created when user add multiple web controls.
It is a problem because a ajax javascript class cannot be registered twice.
If I use ScriptManager.RegisterClientScriptInclude, the script will be unique but it is inserted before ajax javascript liberary.
It seems that I have to do something special to make this work. anyone has suggestions or has experienced the same issue??
thanks
Rushui