Beispiel #1
0
        private void BindNewsClass()
        {
            IList <NewsClass> list = NewsClass.AllClass;

            ArticleClass.DataSource = list;
            ArticleClass.TextField  = "ClassName";
            ArticleClass.ValueField = "ID";
            ArticleClass.DataBind();
        }