Programmatically create wiki page in SharePoint
In this blog we will be seeing how to create wiki page in SharePoint
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Vishal PatelPosted Sep 27, 2012, 6:36 AM
SPFile wikiPage = rootFolder.Files.Add(String.Format("/{0}/{1}", rootFolder, "Home.aspx"), SPTemplateFileType.WikiPage); Change This Line SPFile wikiPage = rootFolder.Files.Add(String.Format("{0}/{1}", rootFolder.ServerRelativeUrl, "Home.aspx"), SPTemplateFileType.WikiPage); and It works
carmon capdevPosted Jun 12, 2012, 1:29 PM
this code does not work
carmon capdevPosted Jun 12, 2012, 1:29 PM
this code does not work