Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

how to change a property in an itemupdated event receiver?

$
0
0

Hi, I have a very simple code but it doesn't change the property

public  override  void  ItemUpdated(SPItemEventProperties  properties){
            base .ItemUpdated(properties);using(DisabledEventsScope  scope =new  DisabledEventsScope ()){
                SPListItem  listItem = properties.ListItem;
                listItem["Title"]="A cool new title!";
                listItem.Update();}}

it doesn't throw errors but the property is not being changed.

Note: I'm working with form library.


luis molina



Viewing all articles
Browse latest Browse all 11571

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>