Dropdownlist Datatextfield
-
I have this page with 2 dropdownlists. When the page loads. the first dropdownlist is popoulated. When you select which value you want in the first ddl the page is posted back and retrieves the values for the second dropdownlist. the second ddl uses a stored_proc to populate it. what i wanted to know is: 1. Is it possible to set the ddl.datatextfield to 2 pieces of info taken from the database say a first name and lastname? any help with this is much appreciated. Keep coding
-
I have this page with 2 dropdownlists. When the page loads. the first dropdownlist is popoulated. When you select which value you want in the first ddl the page is posted back and retrieves the values for the second dropdownlist. the second ddl uses a stored_proc to populate it. what i wanted to know is: 1. Is it possible to set the ddl.datatextfield to 2 pieces of info taken from the database say a first name and lastname? any help with this is much appreciated. Keep coding
no, but you can always return the two pieces of info as one - in a SQL statement you would use something like: select firstname+' '+lastname as personname from... then set your dropdownlist datatextfield = personname Hope this helps Phil