ExpandoObject对象的绑定问题
时间:2010-11-25 来源:David.Yang
1 protected new object Eval(string expression)
2 {
3 object obj = this.Page.GetDataItem();
4 IDictionary<string, object> items = obj as IDictionary<string, object>;
5 if(items != null)
6 return items[expression];
7 else
8 return DataBinder.Eval(this.Page.GetDataItem(), expression);
9 }
相关阅读 更多 +