I have a dropdown list in my visual web part in c# and i am trying to bind dropdown list from sharepoint list items.
And I have the following code:
SPList list = web.Lists["Authors"]; drpbind.DataSource = list.Items; drpbind.DataValueField = "Id"; drpbind.DataTextField = "FullName"; drpbind.DataBind();
And when I run this an error is being thrown saying that the Column
FullName does not exist in the list. I tried to assign with column guid but its not working.
Help me please!