/// <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); }