public class SomeControl : UserControl // or IDataEditor that has a control etc.
{
// ...
protected override void OnInit(object s, EventArgs e)
{
//...
Page.ClientScript.RegisterClientScriptInclude(
typeof(SomeControl),
"Unique key for your script to prevent double reference",
Page.ResolveUrl("~/path to your script")
);
//...
}
// ...
}
javascript references for use in backend
How do you add javascript references to a backend umbraco aspx page like editContent.aspx?
I would like to add json2.js douglas crockfords library so ublogsy can work in ie7
I found a similar question here but no one answered it
Thanks
Paul
Basic ASP.NET ;)
is working on a reply...