Asp.Net(C#)内联编码再一个eval Merge

时间:2010-04-09 07:44:27

标签: c# asp.net

如何再进行一次eval合并?

<asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("Name"),Eval("Surname"),Eval("Mail")%>'/>

1 个答案:

答案 0 :(得分:3)

尝试

<asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("Name") + "," + Eval("Surname") + "," + Eval("Mail")%>'/>