DNN 5 - Can't get current ModuleId from nested user control in cutom module?

William Severance from DNN forum answered this one for me, I'll post the answer here as well Since the child control inherits from PortalModuleBase, I would do the following in the Page_Load handler of the parent control Note: ManagerLink is assumed to be a reference to the child control VB. NET: With ManagerLink . ModuleConfiguration = Me.

ModuleConfiguration . LocalResourceFile = Me. LocalResourceFile End With C#: protected void Page_Load(System.

Object sender, System. EventArgs e) { ManagerLink. ModuleConfiguration = this.

ModuleConfiguration; ManagerLink. LocalResourceFile = this. LocalResourceFile } The above allows the child control to use the parent's ModuleConfiguration (which will include ModuleId) and LocalResourceFile for any localization.

William Severance from DNN forum answered this one for me, I'll post the answer here as well. Since the child control inherits from PortalModuleBase, I would do the following in the Page_Load handler of the parent control Note: ManagerLink is assumed to be a reference to the child control VB. NET: With ManagerLink .

ModuleConfiguration = Me. ModuleConfiguration . LocalResourceFile = Me.

LocalResourceFile End With C#: protected void Page_Load(System. Object sender, System. EventArgs e) { ManagerLink.

ModuleConfiguration = this. ModuleConfiguration; ManagerLink. LocalResourceFile = this.

LocalResourceFile } The above allows the child control to use the parent's ModuleConfiguration (which will include ModuleId) and LocalResourceFile for any localization.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions