Here is my list with name "Department" and name,mobile these are my column name and i want to add to my dropdown list only mobile number(column)plz help me ...
SPSite site = new SPSite("http://alluser/Staffs");
SPWeb web = site.OpenWeb();
SPList list = web.Lists["Department"];
SPFieldChoice filed = (SPFieldChoice)list.Fields["mobile"];
drop_dept.DataSource = filed.Choices;
drop_dept.DataBind();
that code not showing any thing to my dropdownlist.... can any one gave me sol.