SPWeb web = SPContext.Current.Web;
SPList list = web.Lists.TryGetList("Database");
if (list != null)
SPListItem item = list.Items.Add();
item["Picture"] = FileUpload_Pic; // can i write like this for an fileupload, i am using it as an column on my sharepoint site
// i get this error,
Column 'Picture' does not exist. It may have been deleted by another user.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)