Best Technique for Multiple Eval Fields in Gridview ItemTemplate?

前端 未结 4 1271
执笔经年
执笔经年 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:16

    I have a easiest way to do this same thing...

    
    

    .

    <%#Eval("FirstName").ToString() +", "+ Eval("LastName").ToString() %>
    

    Here both objects are converted into string the concatenate them.

提交回复
热议问题