I am trying to bind two elements from a list to a Link Button. The following works separately on two link buttons:
<asp:LinkButton ID="LinkButton2" ForeColor="Black" runat="server" Text='<%# Bind("Name") %>'></asp:LinkButton>
<asp:LinkButton ID="LinkButton1" ForeColor="Black" runat="server" Text='<%# Bind("UserID") %>' OnClick="LinkButton1_Click"></asp:LinkButton>
I want to do it so on the Text Attribute it holds both Name and UserID Bind.
For example;
<asp:LinkButton ID="LinkButton1" ForeColor="Black" runat="server" Text='<%# Bind("UserID") % + " " + <%# Bind("Name") %>' OnClick="LinkButton1_Click"></asp:LinkButton>
How Can I achieve this?