Best Technique for Multiple Eval Fields in Gridview ItemTemplate?

前端 未结 4 1288
执笔经年
执笔经年 2020-12-24 11:53

What is the best way to use multiple EVAL fields in a GridView ItemTemplate?

Looking to have some control over formatting for appearance as well as setting up hyperl

4条回答
  •  离开以前
    2020-12-24 12:42

    Even clearer, IMO, is:

    <%# String.Format("{0} - {1}", Eval("Name1"), Eval("Name2")) %>
    

提交回复
热议问题