sandeep kharat

Hi all,

I am uploading files in Document Library Programatically, i have added new column in Document Library with name MailId, i want to add some value as a MailId while uploding file.

How can do this

any help will be appreciated.

Regards,

Sandeep




Re: SharePoint - Development and Programming want to update column value while uploading files programmaticaly

amishjt

Sandeep,

You might be getting SPFile onbject when you add the file. They you need to use the .Item property of the file object and upadate the item.

file.Item["MailID"] ="SomeValue";

file.Item.Update();

Hope this helps.