Tag Info

Hot answers tagged

5

Deploy your feature to Web Scope and enable the feature on your subsite. Register the event receiver (element.xml) with: <Receivers ListUrl="Lists/test">


2

Turn on versioning for the library. Check the image's version in your ItemUpdated event receiver. If it's version 1, run your code. If not, skip the code. if (listItem["_UIVersionString"].ToString() == "1.0") { //do it! }


1

You can use: string value = (new SPFieldLookupValue(item["FieldName"] as String)).LookupValue


1

You can't do that. I'll put it in a simple way - Even Receivers are not aware of HTTP Context, so you won't be able to get the instance of the page which 'triggered' (not directly of course) the event receiver. You best bet would be to override the New Item form and assign custom code to Save action, where you would start the long operation and then do the ...



Only top voted, non community-wiki answers of a minimum length are eligible