In our last adventure, I was attempting to properly show a Dictionary
. Thanks to the helpful answers in that post, I r
Maybe I'm missing something (didn't look at the earlier question), but why wouldn't you just do this?
<%# Eval("Name") + Eval("Type") %>
I had to convert the object to a string before concatenating the string. This worked for me.
Text='<%# Eval("LastName").ToString() + ', ' + Eval("FirstName").ToString() %>'
As it turns out, the problem is easily solvable if the two columns from the table are concatenated and into one column, like so:
SELECT Column1Name + ' - ' + Column2Name AS Column3Name FROM Table1 WHERE
...
This turns this:
Column1Name Column2Name ----------- ----------- Stuff1 Stuff5 Stuff2 Stuff6 Stuff3 Stuff7 Stuff4 Stuff8
Into this:
Column3Name --------------- Stuff1 - Stuff5 Stuff2 - Stuff6 Stuff3 - Stuff7 Stuff4 - Stuff8
When all else fails, think a little lower level.