W
Will Chamberlain
For an Edit User section of my application I have created a DataReader
that sets textbox.text values = objDataReader("field"). One of the
fields in the table is Department and to display this I have chosen to
use a dropdownlist. I have tried setting:
ddlDepartment.SelectedItem.Text = objDataReader("Department")
The departments are:
Administration - Value 1
Finance - Value 2
Engineering - Value 3
When I use the method above It simply replaced Administration with
whatever the user is saved as but the value still stays the same.
I know this sounds confusing but if needed I can elaborate.
- Will
that sets textbox.text values = objDataReader("field"). One of the
fields in the table is Department and to display this I have chosen to
use a dropdownlist. I have tried setting:
ddlDepartment.SelectedItem.Text = objDataReader("Department")
The departments are:
Administration - Value 1
Finance - Value 2
Engineering - Value 3
When I use the method above It simply replaced Administration with
whatever the user is saved as but the value still stays the same.
I know this sounds confusing but if needed I can elaborate.
- Will