Module Development in DNN 8: 7 - Using the Client Resource Manager in MVC modules
Peter Donker raised the question in the DNN Connect Facebook Group – “How can you access the Client Resource Manager in an MVC View?”. I gave him the answer as a reply but I thought it would be good to provide a more accessible source for the information.
Thankfully, I came across the issue while developing the QuickSettings View for the DCC Viewer module, and so I added the Page property to the DNNHelper class.
So the answer to Peter’s question is you can just do it similarly to how you would do it in a WebForm code-behind file.
Note the Dnn.DnnPage is used to pass the current WebForm page to the Client Resource Manager.