ASP.NET Repeater bind List

前端 未结 7 415
遇见更好的自我
遇见更好的自我 2020-12-04 20:50

I am binding a List to a Repeater control. Now I want to use the Eval function to display the contents in ItemTemplate

相关标签:
7条回答
  • 2020-12-04 21:26

    This should work just fine:

    <ItemTemplate>
       <%=this.GetDataItem().ToString() %>
    </ItemTemplate>
    
    0 讨论(0)
提交回复
热议问题