multiplex77
Programmer
I have a DropDownList which I want to populate from a table (eg, Employees). I've set the DataSource property to DataSet3, which is in turn Filled with SqlDataAdapter3 (pulls up Employees table data).
I want the list to display 2 fields in Employees table in the format like "Lastname, Firstname" (Firstname and Lastname are 2 separate fields in Employees table). But my problem is I don't know how to list out multiple table fields (Firstname and Lastname) in the DataTextField property of DropDownList. I also don't know how to include additional text (the ", "
in the DataTextField.
I have 2 questions:
1. How do I do this?
2. Can it be done without too much coding? I'm just moving over from ASP and am hoping to do less coding with .NET.
2. Could someone please recommend me a reference site for ASP.NET objects like DropDownList. I find the MSFT one too technical...it looks like machine code to me. All I need is a simple description of each object property and how to set it.
Thanks for your help!
I want the list to display 2 fields in Employees table in the format like "Lastname, Firstname" (Firstname and Lastname are 2 separate fields in Employees table). But my problem is I don't know how to list out multiple table fields (Firstname and Lastname) in the DataTextField property of DropDownList. I also don't know how to include additional text (the ", "
I have 2 questions:
1. How do I do this?
2. Can it be done without too much coding? I'm just moving over from ASP and am hoping to do less coding with .NET.
2. Could someone please recommend me a reference site for ASP.NET objects like DropDownList. I find the MSFT one too technical...it looks like machine code to me. All I need is a simple description of each object property and how to set it.
Thanks for your help!