in an sql table there's an id, first name and last name field. i'd like to concatenate the first and the last name fields and display it as one in a dropdown control.
this is the vb.net code:
con()
sqry = "[SELECT QUERY]"
sqcom = New SqlCommand(sqry, sqcon)
da.SelectCommand = sqcom
ds.Clear()
da.Fill(ds)
ddl_adv.DataSource = ds
ddl_adv.DataTextField = "emp_fname"
ddl_adv.DataValueField = "emp_no"
ddl_adv.DataBind()
sqcon.Close()
^this code displays only the first name. how do i go about concatenating in asp.net?