Esempio n. 1
0
 protected override void Render(HtmlTextWriter writer)
 {
     if (isShowImmidiatary)
     {
         writer.Write(MessageUtils.GetMessageHtml(messageType, content, this));
     }
     else
     {
         writer.Write(MessageUtils.GetMessageHtml(this));
     }
 }
Esempio n. 2
0
 protected override void Render(HtmlTextWriter writer)
 {
     if (isShowImmidiatary) // 有直接显示的消息
     {
         writer.Write(MessageUtils.GetMessageHtml(messageType, content, this));
     }
     else // 没有直接显示的消息则去cookies中检查是否有消息需要显示
     {
         writer.Write(MessageUtils.GetMessageHtml(this));
     }
 }