Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Return a value from ItemUpdating event to ItemUpdated in event receiver

$
0
0

I have the following event receiver where I need to return the value of the "fullURL" to the itemUpdated event. 

The fullURL is the url to the page that is firing the event receiver. 

Is this possible or is there a better way of doing it?

    

public override void ItemUpdating(SPItemEventProperties properties) { base.ItemUpdating(properties); if (properties.ListTitle == "Pages") { using (SPWeb subweb = properties.Web) { SPListItem listItem = properties.ListItem;

//return this value to the itemupdatedevent var fullURL = properties.Web.Url + "/" + properties.ListItem.Url; } } }



sayitfast


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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