I have a SQL select statement and using the results I bind it to an asp dropdown.
String strQuery ="SELECT RTRIM(NAME), NUMBER . . ."
customerselect.DataTextField = "NAME+ ' | ' +NUMBER";
I need to display in the DataTextField:
Example Name | 123456
I'm getting an error:
" does not contain a property with the name 'NAME+ ' | ' +NUMBER'."
Try: