Include Multiple Bind Values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wayne Wengert

    #1

    Include Multiple Bind Values

    I am using VS 2005/VB to build an ASP.NET page and I want to modify the
    contents of a label in the Formview to display "FirstName LastName" instead
    of showing the FrstName and LastName as separate labels. I tried the code
    shown below but it displays only the value of LastName? How should this be
    coded?

    =============== Code =============== ====
    <ItemTemplate >

    <asp:Label ID="Name" runat="server" Text='<%# Bind("FirstName ") %> <%#
    Bind("LastName" ) %>'> </asp:Label><br />


Working...