I'm looking for a way to programmatically hide module container from within an XsltDb stylesheet: in normal modules I'd implement something like:
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
if testcondition=true then
Me.ContainerControl.Visible = False
But this needs access to PortalModuleBase, and I don't think it's possible to create an instance like:
Dim p as new PortalModuleBase(myModuleID)
p.ContainerControl.Visible = False
I could revert to client side scripting (e.g. jQuery.hide()), but would like to understand whether it would be possible to do this on the server. Any idea?