Greetings,
I have the following code in an .aspx web page and am receiving the error: "Compiler Error Message: CS1026: ) expected". I can't see where it is expecting an extra parenthesis. The line of code it fails on is the following:
<asp:Label id=lblName runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.FirstName") + " " + DataBinder.Eval(Container,"DataItem.LastName"); %>'>
</asp:Label>
I'm simply trying to concatenate the first name and last name in a data list. Any ideas as to what I am doing wrong?
Thanks in advance!
I have the following code in an .aspx web page and am receiving the error: "Compiler Error Message: CS1026: ) expected". I can't see where it is expecting an extra parenthesis. The line of code it fails on is the following:
<asp:Label id=lblName runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.FirstName") + " " + DataBinder.Eval(Container,"DataItem.LastName"); %>'>
</asp:Label>
I'm simply trying to concatenate the first name and last name in a data list. Any ideas as to what I am doing wrong?
Thanks in advance!