views:

182

answers:

1

Hi,

I have created a SharePoint wikipage library using C#. Now when I try to add files to the WikiPage library using SPFileCollection.Add method and click at those files, they appear in a separate browser window. They do not come up in the sharepoint window itself as in case of a WikiPage created from the SharePoint UI. What am I doing wrong? When I try to use SPListItemCollection.Add and try to populate the WikiField and Name fields I get an exception stating that items should be added to document libraries only using the SPFileCollection.Add() method. Any help would be appreciated..

+1  A: 

Maybe this question can help you out

armannvg