I have a dropdown list containing the manufacturers and it is being loaded like this:
private void LoadManufacturer () {
ManufacturerCollection manufacturerCollection = new ManufacturerController().FetchAll();
manufacturerCollection.OrderByAsc(Manufacturer.Columns.Name);
ddlManufacturer.DataSource = manufacturerCollection;
ddlManufacturer.DataTextField = Manufacturer.Columns.Name;
ddlManufacturer.DataValueField = Manufacturer.Columns.ManufacturerId;
ddlManufacturer.DataBind();
}
After the user selects the Manufacturer and clicks on a button, I need to programmatically get the CreatedBy value from the selected Manufacturer and store it in a string. I know it is in the Manufacturer object within the ManufacturerCollection that the list is bound to but I have no idea how to access it. Can anyone give me an example of how to get the value?
Thanks!