示例#1
0
 /// <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);
 }
示例#2
0
 /// <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);
 }