This question is locked. New answers and comments are not allowed.
Hi,
I'd like to call the ScriptRegistrar class from a custom control (which inherits from the ViewComponentBase class) to make it generate additional javasript when the control is rendered.
Any idea how to do it ?
I saw that to call additional scripts you use the ScriptFileNames property. Is there a similar way to add a javascript ?
Thanks for your help.
I'd like to call the ScriptRegistrar class from a custom control (which inherits from the ViewComponentBase class) to make it generate additional javasript when the control is rendered.
Any idea how to do it ?
I saw that to call additional scripts you use the ScriptFileNames property. Is there a similar way to add a javascript ?
Thanks for your help.