Repeater绑定List泛型对象

后台:


public void BindData()
        {
            List DataList = new List();
            DataList = DBTools.GetPublishedWeiBo(user._id.ToString());
            Repeater_PubData.DataSource = DataList;

            Repeater_PubData.DataBind();
        }



前台:


 
               
                 


                   

                       
                   

                   

                        <%#((Model.WeiBo)Container.DataItem).Message %>
                       
                   

               

               
               

你可能感兴趣的:(.NET)