开发者

How to clear a message after AddModuleMessage

开发者 https://www.devze.com 2023-01-25 23:21 出处:网络
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)

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

精彩评论

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