Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Access Wiki Page Library by MOSS Object model

  Asked By: Susana    Date: Oct 15    Category: MOSS    Views: 1504

I have written an ItemAdded EventHandler on a "Wiki Page Library" object.

In the Event Handler, I am able to access most of the Fields of the newly added List Item. But I am not able to access the Content of the new List Item (Wiki) added to Wiki Page Library object.

In Wiki Page Library, There is a column call "Wiki Content" that hold the actual content of the wiki page.
Event Handler is getting executed when a new wiki is added to this library, I am able to get the title of the new wiki page, but not the content.

Let me know if anyone knows about how to access the content of a wiki page.

Below is the code:


public override void ItemAdded(SPItemEventProperties properties)
{

SPListItem item = properties.ListItem;
System.String Content = (string)item["Wiki Content"]; // content of the wiki page
System.String Link = (string)item["BaseName"]; //Name of wiki page

}

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Bhoomi Chabaria     Answered On: Oct 15

Basically the wiki  content gets available after you add say 3 seconds delay before accessing it.

 
Didn't find what you were looking for? Find more on Access Wiki Page Library by MOSS Object model Or get search suggestion and latest updates.




Tagged: