如何使用标准错误信息

How to use the standard error message

我似乎无法找到如何在 Lemoon CMS 中使用标准 "slide in from top" 错误。以前有人解决过这个问题吗?我正在尝试将错误用于我自己的登录模块。

您应该从后面的代码中调用 SetMessage(string message, string type, int duration)。 SetMessage 方法在 Lemoon.Web.UI.Admin.PageBase class 中定义。这意味着它可能无法在您网站的 public 部分运行,只能在管理部分运行。