G
Guest
When using a dropdownlist in a web app I get the following in the listbox when I run the app
System.Data.DataRowView. I tried to convert this using the ToString() method to no avail
The code is as follows
private void Page_Load(object sender, System.EventArgs e
BindList()
public DataView CreateDataSource(
string userConnect = "Provider=\"MSDAORA.1\";" + GetConnectionString() + ""
string programSelect = "Select wo9 from Workorder where wo9 <> ' '"
oda = new OleDbDataAdapter(programSelect, programConnect)
DataSet ds = new DataSet()
oda.Fill(ds, "program")
DataView program = ds.Tables["program"].DefaultView
return program
public void BindList(
projectList.DataSource = CreateDataSource()
projectList.DataBind()
projectList.ToString()
How do i cure this
Thanks
Dave
System.Data.DataRowView. I tried to convert this using the ToString() method to no avail
The code is as follows
private void Page_Load(object sender, System.EventArgs e
BindList()
public DataView CreateDataSource(
string userConnect = "Provider=\"MSDAORA.1\";" + GetConnectionString() + ""
string programSelect = "Select wo9 from Workorder where wo9 <> ' '"
oda = new OleDbDataAdapter(programSelect, programConnect)
DataSet ds = new DataSet()
oda.Fill(ds, "program")
DataView program = ds.Tables["program"].DefaultView
return program
public void BindList(
projectList.DataSource = CreateDataSource()
projectList.DataBind()
projectList.ToString()
How do i cure this
Thanks
Dave