开发者

how to bind single field of grid with multiple values using DataBinder.Eval

开发者 https://www.devze.com 2023-01-05 05:56 出处:网络
i have one hidden field and i want to bind it with two values of my data base separated by an coma. some thing like

i have one hidden field and i want to bind it with two values of my data base separated by an coma. some thing like ->asp:HiddenField ID="hfRstidDate" runat="server" Value=<%# DataBinder.Eval(Container.DataItem, "tsk_ID"),DataBinder.Eval(Container.DataItem, "Date_Worked").ToString())%>

pleas开发者_高级运维 help


<asp:HiddenField runat="server" Value='<%#String.Concat(Eval("tsk_ID"),",",Eval("Date_Worked").ToString()) %>' />
0

精彩评论

暂无评论...
验证码 换一张
取 消