/// <summary> /// 将整个控件进行“不可用的”盖棺 /// </summary> /// <param name="message"></param> public virtual void CompleteMask(string message = null) { ViewStateEx.Clear(); //Controls.Clear(); //WebUI.Panel p = new WebUI.Panel() //{ // CssClass = "error", //}; //p.Style.Add("padding", "10px;"); //p.Controls.Add(new Literal() { Text = message }); //Controls.Add(p); JS(string.Format( "ISEx.loadingPanel.show('发生错误,页面失效:{0}');", HttpUtility.JavaScriptStringEncode(message))); }
/// <summary> /// Shortcut 功能 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="value"></param> /// <param name="key"></param> public virtual BaseControl Import <T>(T value, string key = null) { ViewStateEx.Set <T>(value, key); return(this); }
/// <summary> /// 由别的 控件 输入指定类型或者 key 的 ViewState 值 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="c"></param> /// <param name="key"></param> public virtual BaseControl Import <T>(BaseControl c, string key = null) { ViewStateEx.Set <T>(c.ViewStateEx.Get <T>(key: key), key: key); return(this); }