I have a DropDownList that is being populated from SQL server. Some of the records are in uppercase. I want to convert all of them to lowercase in the dropdown. Is this possible?
VB.NET:
Dim oConn As SqlConnection
Dim oComm As SqlCommand
Dim oReader As SqlDataReader
Dim sSQL As String
Dim sConn As String
sSQL = "SELECT fname + ' ' + lname AS EmpName, email, active "
sSQL += "FROM Employess WHERE active=1 ORDER BY fname ASC"
sConn = "server=111.11.1.11;database=mydb;Initial Catalog=mydb;User ID=user;Password=pwd"
oConn = New SqlConnection(sConn)
oConn.Open()
oComm = New SqlCommand(sSQL, oConn)
oReader = oComm.ExecuteReader()
ddlCoordinator.DataSource = oReader
ddlCoordinator.DataBind()
ddlCoordinator.Items.Insert(0, "Select")