You cannot use the ItemUpdating event to retrieve an updated value in SharePoint Server 2007 or in Windows SharePoint Services 3.0

You cannot use the ItemUpdating event to retrieve an updated value in SharePoint Server 2007 or in Windows SharePoint Services 3.0

Article ID : 948324
Last Review : March 14, 2008
Revision : 1.0
On This Page

SYMPTOMS

In Microsoft Office SharePoint Server 2007 or in Microsoft Windows SharePoint Services 3.0, you cannot use the ItemUpdating event to retrieve an updated value. For example, you cannot use the properties.AfterProperties[vti_title] property to retrieve the updated title of a page.

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the Applies to section.

Back to the top

MORE INFORMATION

Steps to reproduce the problem

1. Create a new site by using the Publishing template.
2. Click Site Actions, point to Site Settings, and then click Modify Pages Library Settings.
3. Click Versioning settings.
4. Under Content Approval, click No.
5. Under Document Version History, click Create major and minor (draft) versions.
6. Under Draft Item Security, click Only users who can edit items.
7. Under Require Check Out, click Yes.
8. Click OK.
9. Create two new pages, and then verify that each page has a different title.
10. Create an event receiver that traps the ItemUpdating event.
11. Use the properties.BeforeProperties property and the properties.AfterProperties property to retrieve the title of a page.

Notice that both properties return the same value.

Back to the top


APPLIES TO
• Microsoft Office SharePoint Server 2007
• Microsoft Windows SharePoint Services 3.0

Back to the top

Keywords: 
kbbug kbtshoot kbprb KB948324

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image