ASP.NET Repeater bind List

前端 未结 7 442
遇见更好的自我
遇见更好的自我 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:14

    Inside Item Template

         
     
        
    

    or Simply Add inside Item Template

    <%# Eval("YourEntityName").ToString() ==""? "NA" : Eval("YourEntityName").ToString()%>
    

提交回复
热议问题