Hi all,
I am migrating my asp code to asp.net and I am attempting to use an asp.net drop down list for a evaluation form. When I coded in classic ASP, I populated a drop down list via a recordset. I am attempting to do the same with an ASP.net drop down list, but here is my problem. The text that is shown in the list needs to be the combination of two fields from the query e.g. The drop down list item for the instructor needs to have the instructor's first name and last name for each instructor. In classic asp I would do the following -
[tt]
Do Until objRSInstructors.EOF
Response.Write("<OPTION VALUE=""" & objRSInstructors("FacultyID" & """>" & objRSInstructors("FirstName" & " " & objRSInstructors("LastName" & "</OPTION>" & vbCrLf)
objRSInstructors.MoveNext
Loop[/tt]
I can't find anything regarding this on the web or the asp.net books I own. Can this be done using an asp.net drop down list?
Tanks,
Rob
I am migrating my asp code to asp.net and I am attempting to use an asp.net drop down list for a evaluation form. When I coded in classic ASP, I populated a drop down list via a recordset. I am attempting to do the same with an ASP.net drop down list, but here is my problem. The text that is shown in the list needs to be the combination of two fields from the query e.g. The drop down list item for the instructor needs to have the instructor's first name and last name for each instructor. In classic asp I would do the following -
[tt]
Do Until objRSInstructors.EOF
Response.Write("<OPTION VALUE=""" & objRSInstructors("FacultyID" & """>" & objRSInstructors("FirstName" & " " & objRSInstructors("LastName" & "</OPTION>" & vbCrLf)
objRSInstructors.MoveNext
Loop[/tt]
I can't find anything regarding this on the web or the asp.net books I own. Can this be done using an asp.net drop down list?
Tanks,
Rob