1. Assuming that your module control inherits from DotNetNuke.Entities.Modules.PortalModuleBase (which is must/should), there is indeed the public property ModuleConfiguration which returns the module's ModuleInfo object. I'm not following you when you say that ModuleConfiguration gives you a list of the controls I put on the page.
ModuleConfiguration.ModuleControl is a property that contains the current control. That was what I was trying to get at.
2. If it works at all, setting ModuleConfiguration.ModuleControl.ControlTitle would only have an effect on the displayed title if that property was set during the control's Page_Init not Page_Load event. Likewise with setting ModuleConfiguration.ModuleTitle.
Why do you say "If it works at all?" Isn't it supposed to?
3. ModuleConfiguration.ControlTitle was deprecated (made obsolete) in DNN 5.00.00 and was replaced by ModuleConfiguration.ModuleControl.ControlTitle.
I got that much. Any reason why?
Since by default the ControlTitle is what gets displayed as the module title for any control other than the default view control, it is actually the ModuleTitle property which you need to change dynamically. Since you indicated that you cannot do that until the Page_Load event handler, it will be necessary to use my second suggestion. Did you try that approach?
Not yet. I will a little later (If not today, then tomorrow). The part about ModuleControl.ControlTitle being displayed only for the default view control is confusing. Are you saying that the default view control for the module has its title set with ModuleControl.ControlTitle, and all the rest are set with ModuleTitle? If so,
- How do you set the default view control in a module
- Just my difference in probramming style, but I would have done things a slight bit different here