473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Concatenating Data Items

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!

*** Sent via Developersdex http://www.developersdex.com ***
Apr 26 '07 #1
2 1540
OutdoorGuy wrote on 26 apr 2007 in microsoft.public.inetserver.asp.general:
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!
This is a classic asp group.

Dotnet questions should be asked in

<microsoft.public.dotnet.framework.aspnet>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 26 '07 #2
Thanks. I appreciate it.
*** Sent via Developersdex http://www.developersdex.com ***
Apr 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Dixie | last post by:
I have a problem using Dev Ashish's excellent module to concatenate the results of a field from several records into one record. I am using the code to concatenate certain awards onto a...
4
by: Juan | last post by:
Does any one know if there are reported bugs when concatenating strings? When debugging each variable has the correct value but when I try to concatenate them some values are missing (I can´t see...
0
by: bob brar | last post by:
hi, I have the following function in a class. Public Function getCustomers() As DataSet Dim Db As New CDatabaseAccessor getCustomers = Db.getData("SELECT A.*, RTRIM( A.TITLE)+', '+ RTRIM...
4
by: Elena | last post by:
Hi, I am filling in a combobox. I would like to concatenate two fields into the data combo box and display "last name, first name" I tried to displaymember = "employee_last_name" & ", " &...
11
by: Girish Sahani | last post by:
I wrote the following code to concatenate every 2 keys of a dictionary and their corresponding values. e.g if i have tiDict1 = tiDict1 = {'a':,'b':} i should get tiDict2={'ab':} and similarly for...
1
by: Sheldon | last post by:
Good day everyone, I would like to know if anyone has a fast and concise way of concatenating two 2D arrays of same dimensions? Whenever I try: a = concatenate(b,c) I get erroneous data as...
21
by: c | last post by:
Hi everybody. I'm working on converting a program wriiten on perl to C, and facing a problem with concatenate strings. Now here is a small program that descripe the problem, if you help me to...
1
by: Chris | last post by:
I am programatically binding a datasouce to a dropdown. It is the names of employees that meet certain criteria. In the database they are stored as forename and surname. Aside from concatenating...
2
by: Whizzo | last post by:
Hi all; I'm using this great bit of code to concatenate a fields from multiple rows into a single one. 'Concat Returns lists of items which are within a grouped field Public Function...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.