Try our conversational search powered by Generative AI!

Add javascript and css to gadget in runtime



Is there any alternative to ScriptResource and ScriptResource attributes in gadgets?

We decided to add a gadget to perform forum moderation and realize that (EPiserver) recommeded way of registering script and css resources in the corresponding controller(s) is not working for us. First, we want to control e.g.  jquiery-ui themes in web.config without recompiling controllers. Second, I dont fully understand why conrtoller have to know how the view is going to render the content and which js files it may want to have.

Sep 26, 2010 18:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.