All,
I’m developing a dnn 6 module and cannot seem to find any way to get the ModuleID using JQuery. The ModuleID is not in the querystring and seems to be stored in the context. Does anyone know how to get the ModuleID using JQuery if it is not shown in the querystring?
One way I tried to do this is use an asp:label control and in the page load assign the ModuleID to the label, then use JQuery to get that .val() of that label. However, I don’t want to have the ModuleID just shown on the page – that is silly! 🙂
thanks for any tips!
You can simply render the ModuleId inside a <script> tag in your View.ascx: