i am using these using statements-
using System;
using System.Data;
using System.Data.Odbc;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
and this is me attempting to get the term info into a dropdownlist
protected void getAppTerm()
{
string status, y;
y = "";
string CommandText = "select term from Terms";
OdbcConnection myConnection = dbconnect();
OdbcCommand myCommand = new OdbcCommand(CommandText, myConnection);
try
{
myConnection.Open();
OdbcDataReader reader = myCommand.ExecuteReader();
while (reader.Read())
{
status = reader.GetString(0);
foreach (ListItem item in ddlApplicationTerm.Items)
{
y = item.Text;
}
if (!(status == y))
{
ddlApplicationTerm.Items.Add(status);
}
}
}
catch (OdbcException ex)
{
}
finally
{
myConnection.Close();
}
}
The info is not going into the drop down list. i have all of the drivers installed too.