protected void Page_PreRender(object sender, EventArgs e)
        {
            MessageTips mt          = new MessageTips();
            String      MessageShow = mt.EventHtml(this);

            if (!String.IsNullOrEmpty(MessageShow))
            {
                lblMessage.Text    = MessageShow;
                lblMessage.Visible = true;
            }
            else if (String.IsNullOrEmpty(Settings_SkinName))
            {
                lblMessage.Text    = mt.ViewContentToHtml(ViewResourceText("", "请设置模块主题皮肤/效果"));
                lblMessage.Visible = true;
            }
            else if (MainModule && String.IsNullOrEmpty(Settings_SkinDetailName))
            {
                lblMessage.Text    = mt.ViewContentToHtml(ViewResourceText("", "请设置模块主题皮肤(详情)"));
                lblMessage.Visible = true;
            }
            else
            {
                lblMessage.Visible = false;
            }
        }
        /// <summary>
        /// 向页面注册提示信息
        /// </summary>
        public String Event(Page p)
        {
            if (HttpContext.Current.Session[SessionName()] != null)
            {
                String s = Convert.ToString(HttpContext.Current.Session[SessionName()]);
                if (!String.IsNullOrEmpty(s))
                {
                    MessageTips mt = ConvertTo.Deserialize <MessageTips>(s);
                    if (mt != null && (mt.IsPostBack || !p.IsPostBack))
                    {
                        HttpContext.Current.Session.Remove(SessionName());
                        this._Content = mt.Content;
                        this._MsgType = mt.MsgType;
                        this._GoUrl   = mt.GoUrl;
                    }
                }
            }

            if (!String.IsNullOrEmpty(_Content))
            {
                //System.Text.StringBuilder sb = new System.Text.StringBuilder();
                //sb.Append("<script type=\"text/javascript\">");
                //sb.AppendFormat("asyncbox.tips('{0}','{1}');", _Content, EnumHelper.GetEnumTextVal((Int32)_MsgType, typeof(EnumTips)));
                //sb.Append("</script>");
                //Pmb.Page.RegisterStartupScript("asyncbox.tips", sb.ToString());
            }
            return(_Content);
        }
        public String EventHtml(Page p)
        {
            if (HttpContext.Current.Session[SessionName()] != null)
            {
                String s = Convert.ToString(HttpContext.Current.Session[SessionName()]);
                if (!String.IsNullOrEmpty(s))
                {
                    MessageTips mt = ConvertTo.Deserialize <MessageTips>(s);
                    if (mt != null && (mt.IsPostBack || !p.IsPostBack))
                    {
                        HttpContext.Current.Session.Remove(SessionName());
                        this._Content = mt.Content;
                        this._MsgType = mt.MsgType;
                        this._GoUrl   = mt.GoUrl;
                    }
                }
            }


            return(ViewContentToHtml(_Content));
        }