I am developing a DNN module and I want to display an informational message at the top of my ContentPane, but not above the actual module. I found that I DotNetNuke.UI.Skins.Skin.AddPageMessage()should just do something. I am not getting the behavior that I want, but the message simply will not be displayed at all.
There are several overloads of this method, one group accepts an object Page, the other an object Skin.
public static void AddPageMessage(Page page, string heading, string message, ModuleMessage.ModuleMessageType moduleMessageType)
public static void AddPageMessage(Skin skin, string heading, string message, ModuleMessage.ModuleMessageType moduleMessageType)
I looked at the source of the DNN and found that in the end they actually use the same method private static AddPageMessage(...), which simply searches for the ContentPane inside the provided control and adds a new one ModuleMessageto the collection of controls.
What should I pass as a parameter Pageor Skinto make this correlation work?
Thank...
source
share