May 20, 2010
Merging three table fields using DataBinder.Eval to display in a label control (ASP.NET, C#)
<asp:Label ID="lbl_Address" runat="server" Text=’<%# DataBinder.Eval(Container.DataItem,"Location")+ ", " +DataBinder.Eval(Container.DataItem,"City") +", " +DataBinder.Eval(Container.DataItem,"State")%>’ ></asp:Label>
Labels:
ASP.NET,
c#,
Container,
Container.DataItem,
DataBinder,
DataBinder.Eval,
DataItem,
Eval,
fields,
label control,
Merging,
table
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment