Actually am fetching data from list to my drop down list(ddlseverity).
I want to get selected value from drop-down and display the value in choice filed in SharePoint list. after click submit button selected item will not be inserted into choice filed How can I achieve this?
SPFieldChoice fieldChoice = (SPFieldChoice)list.Fields.GetFieldByInternalName
(itemToAdd.Fields.Add(ddlpriority.Text, SPFieldType.Choice, true));
string[] types = { ddlpriority.Text };
fieldChoice.Choices.AddRange(types);
fieldChoice.Update();