Groups | Blog | Home
all groups > inetserver asp general > april 2007 >

inetserver asp general : Concatenating Data Items



OutdoorGuy
4/26/2007 2:38:37 PM
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!



OutdoorGuy
4/26/2007 4:26:13 PM
Thanks. I appreciate it.


Evertjan.
4/26/2007 9:46:49 PM
OutdoorGuy wrote on 26 apr 2007 in microsoft.public.inetserver.asp.general:

[quoted text, click to view]

This is a classic asp group.

Dotnet questions should be asked in

<microsoft.public.dotnet.framework.aspnet>

--
Evertjan.
The Netherlands.
AddThis Social Bookmark Button