Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
 SPWeb web = SPContext.Current.Web;
            SPList list = web.Lists.TryGetList("Database");

           

                try
                {
                    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.


                        

                        item.Update();
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900