开发者

How to clear a message after AddModuleMessage

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜