Solved

how to populate a dropdownlist with multiple table columns

Posted on 2006-06-14
6
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 4

Expert Comment

by:jvn222
ID: 16909490
0
 
LVL 4

Accepted Solution

by:
jvn222 earned 500 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 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