public class SimplePager : Repeater {private IList dataSource; override public object DataSource { 覆写DataSource set { //This try catch block is to avoid issues with the VS.NET designer //The designer will try and bind a datasource which does not derive from ILIST try { list = (IList)value; 文章来源:http://blog.donews.com/basilwang/archive/2005/12/26/671545.aspx