Two Fields in a DropDownList

Unfortunately, the dropdownlist datatextfield only accepts one fieldname as a parameter, when accessing a database to fill the dropdownlist. To get around this, if you need, say, a first name AND a last name to appear, is to take care of this in the SQL statement a little something like this:
“Select FirstName + ‘ ‘ + LastName as fullname from Employees”
then use ‘fullname’ as the datatextfield for the dropdownlist

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>