I want to get the options from the select field in a SharePoint list so I can put them to a drop-down list in my web part.
Below is what I tried, but it didn't work:
SPList list = web.Lists["myList"];
SPFieldChoice dropdown = list.Fields["FieldName"] as SPFieldChoice;
myDDL = dropdown;
Different options were also tried, but nothing was able to get the choices from the select field.