Sunday, January 8, 2012

AddModuleMessage not working inside ajax panel,
so in order to make it work do following:

1.Add placeholder on control

<asp:PlaceHolder runat="server" id="MessagePlaceHolder" EnableViewState="false"></asp:PlaceHolder>

2.Add function to code behind:

public virtual void ShowMessage(PlaceHolder ctrl, string m, bool error = true)
ModuleMessage.ModuleMessageType moduleMessageType = ModuleMessage.ModuleMessageType.RedError;

if (!error)
moduleMessageType = ModuleMessage.ModuleMessageType.BlueInfo;
string msg = Localization.GetString(m, LocalResourceFile);
DotNetNuke.UI.Skins.Skin.AddModuleMessage(ctrl, msg, moduleMessageType);


Dotnetnuke Module Creator best tool for generation dotnetnuke module.

No comments:

Post a Comment