If I want to add message to Module in dotnetnuke I should do this
DotNetNuke.UI.Skins.Skin.AddModuleMessage(Me, "Error1", DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.RedError)
but If I want to add a warning too like this
DotNetNuke.UI.Skins.Skin.AddModuleMessage(Me, "Error2", DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.YellowWarning)
I get 2 messages on my module. How do I clear messages that were previously ad开发者_开发问答ded with AddModuleMessage?
Either you have to write javascript to delete those elements from client side on some action, OR they will be automatically removed on next page refresh.
加载中,请稍侯......
精彩评论