Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to populate a dropdownlist with multiple table columns

Posted on 2006-06-14
6
Medium Priority
?
374 Views
Last Modified: 2012-08-14
How to populate a dropdownlist with multiple table columns.

I've got a dropdownlist that I populate as follows:

DropDownList1.DataValueField = "id";

DropDownList1.DataTextField = "lname";


But would rather do this; is this possible?

DropDownList1.DataTextField = "lname" + ", " + "fname";
0
Comment
Question by:fwsteal
  • 2
3 Comments
 
LVL 4

Expert Comment

by:jvn222
ID: 16909490
0
 
LVL 4

Accepted Solution

by:
jvn222 earned 2000 total points
ID: 16909494
0
 

Author Comment

by:fwsteal
ID: 16911850
did it with sql: lname + , + fname as name; will take a look at those links though
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question