Event handlers is a program statement which is called from an event. The event can be a human striking a key on the keyboard or pushing a button on a web page

learn more… | top users | synonyms (1)

2
votes
0answers
67 views

restore default incoming email settings

I wrote an email event receiver for a list, which overrode the default incoming email settings (I now only have an option to turn it on/off and set the email, and the rest is expected to be handled by ...
2
votes
1answer
127 views

Using C++ dlls in event receiver

I am trying to use a legacy C++ dll that has around 5 C/C++ dependencies in SharePoint. I created a wrapper for the dll and it works fine in a test desktop program. I added the wrapper and all C++ ...
0
votes
0answers
763 views

Event Receiver - How to set item value with the value from the existing item in the SAME list?

I have a business requirement to add a new version (revision) of the existing list item. New list item should have this setting: NewItem.ParentID=ParentItem.ID ...
3
votes
3answers
2k views

Get ContentType in ItemAdding Event Handler

I need to change a field in the item being added based on its content type. This needs to happen before the item has been added - hence ItemAdding event receiver. Using ItemAdded is no good since the ...
0
votes
2answers
2k views

ItemAdding event not firing when submitting InfoPath form to form library

I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting. ItemUpdating and ItemDeleting work as expected when debugging, but ...
1
vote
1answer
249 views

Possible to attach an event receiver to the list of user alerts?

There's seemingly loads of ways of overriding the OOTB e-mail notifications for creation and deletion of user alerts - can't you just attach an event receiver to the alerts 'list' (is it an SPList?) ...
1
vote
1answer
97 views

How do I update or add field in a list item so that the value is a space character

I am building an event handler. When items in a library on one server farm are updated or deleted, I take that information and ammend a list that resides on another site. I require that one of the ...
1
vote
1answer
80 views

How to add XML file with event reciver

I am creating a event reciver for the list, for that i need to get some data from XML file. currently i have placed the xml file in my local system. Actually where do i need to add the xml file. Is ...
1
vote
4answers
1k views

Problem with HTTP handler in Sharepoint 2010

I'm developing a visual web part for Sharepoint 2010. This webpart needs to get some data via AJAX. So I went for the HTTP handler + jQuery solution posted here. But I'm getting a problem when trying ...
7
votes
1answer
237 views

How to know if another event / user is running on an SPListItem (Sharepoint 2010)

I have a Sharepoint 2010 farm in which is deployed my solution. This solution provides some "data mantain" of some content types. Let me explain: Suppose I add a file in a document library: when I ...
0
votes
2answers
488 views

Managed Client Object Model in Event Receiver - Event is not firing at all

When I use ClientContext context = new ClientContext("SITEURL"); in my event receiver, the event doesn't trigger at all. So my question is can I use managed client object model in event receivers. ...
1
vote
2answers
935 views

Cannot hit breakpoint for document library event receiver

Solution follows, I solved this problem: Good thing I figured out the issue after I've now wasted at least 6 hours debugging this issue. Turns out there's no VS bug, the only bug is that I am an ...
1
vote
2answers
117 views

Saving changes made in a webpart

I currently have a webpart with a table which loads documents in itself. Every row has a checkbox control in the first cell. (Default: unchecked) I am using a second webpart which has a button. If ...
1
vote
2answers
873 views

Attaching an Event Handler to only one content type or list

Could someone help and explain how I can attach an event handler on a custom content type or a particular list? Currently, when I deploy my event handler as a feature and activate the feature, it is ...
5
votes
2answers
285 views

How to add style library event receivers?

how can I add an event receiver to the style library ? (can't find any templateid) thank you ;)
5
votes
1answer
500 views

How can I tell if a document is 'being published'?

I need to use the relevant event receiver to tell if a document is being published, is this possible? I will settle for has 'just been published' - i.e. I have no preference between itemupdating and ...
2
votes
2answers
346 views

Item Updated through different forms runs Item Updated event receiver

Simple but mind blowing question it is. Basically I am updating a specific list items through two different ways, one is using ASP.NET web forms and one is using default list forms provided by ...
1
vote
0answers
83 views

Email not received in Document Library when Event receiver Added [closed]

Email not received in document library when Email event receiver is added to this library..
1
vote
2answers
53 views

Event Handler on MenuBar

whats sharepoint renderingtemplate is and how can I use it to add event handler to "Respond to this survey" link button For last couple of days I have been researching on how to add some kind of ...
1
vote
1answer
100 views

Access a Sharepoint site from event handler

my problem is that I want to pop up a status bar in SP2010 after a File was uploaded via a single uploadform to a List. Found this in the net: ...
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
2answers
308 views

Activating a feature after an SPWeb has been created

I am trying to ensure that a custom feature that I have written is activated when an SPWeb is created, and it has to be activated after all lists/libraries have been created (specifically the document ...
2
votes
2answers
403 views

Pop-up on event handler in MOSS 2007?

I have written an event handler using ItemDeleting event , instead of showing default error page when user try to delete a document from document Library I want to show a warning message in Pop-up box ...
1
vote
1answer
167 views

How to prevent document editing and properties updating

I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library ...
1
vote
2answers
293 views

Respond to survey button “Code Behind” Survey list

When any user clicks on "Responds to Survey" button/link I want to perform some operation using code behind but can't figure out how can I do it or which event handler can be used.
0
votes
1answer
319 views

Elements of type 'Receivers' are not supported at the 'Site' scope. This feature could not be installed

I created a event receiver for survey list types "102" why I can't scope it as anything other then "Web" scoped. If its Microsoft's restriction only option I got is to add it to template and then save ...
4
votes
4answers
3k views

SPItemEventReceiver ItemAdding - Differentiate between a file and a folder

I've setup a custom event receiver. The purpose of my event receiver is to stop people from uploading any file type except PDF's. Right now my code looks like this: if ...
0
votes
2answers
2k views

SharePoint 2010 - How to remove Event Receivers from Content Types

I have a Content Database that contains Event Receivers referring to a Solution / Feature that was incorrectly removed. These Event Receivers are embedded in every Content Type in my Site Collection ...
1
vote
4answers
1k views

Can we use SPUtility.Redirect with Item Added event handler

I want to redirect using to another page after item added, main point is to redirect user to another page on item adding(item should be added first) or item added. EDIT class ClassName: ...
0
votes
2answers
1k views

New EventReceiver events not firing

I have an event receiver written by someone else. It originally came with events for ItemCheckingIn and ItemCheckedIn, but we needed something to handle simple metadata updates, too. Since those ...
0
votes
1answer
148 views

I loss the listitem which was added to list using Item Added Event Receiver

I am using this code to break the permission.But i loss the listitem after refresh the page.Plz help me.. public override void ItemAdded(SPItemEventProperties properties) { ...
2
votes
1answer
3k views

Event receiver After Properties Item Updating Date field is one day off

Experts, Can anyone explain me why I am getting 1 day less From a Date Only picker in Item updating event receiver ... this happens for After properties value. Basically I am trying to validate ...
0
votes
3answers
1k views

ItemAdding getting the file name of a document

I have a document library. I want to add an itemadding event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties
4
votes
3answers
3k views

Deploying EventReceiver project with target of WebApplication from VS fails when activating features

I am trying to deploy an event receivers project with a deployment target of WebApplication as part of my web parts package (also has a target of WebApplication) through Visual Studio and encountering ...
1
vote
2answers
143 views

Is there anyway I can find out if user uploaded multiple items in ItemAdded Event

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading. Normally what happens is when a user adds a item they are taken to ...
0
votes
1answer
751 views

How do I obtain the SPWorkflow object in the event receiver?

I have a workflow event receiver which is handling the WorkflowStarted and WorkflowCompleted events. I need to obtain references to the workflow list item and the workflow object to do some additional ...
0
votes
3answers
618 views

Prevent Item Overwrite Event Receiver

I want to prevent users from overwriting items that have the same name. When users add items to a library there is a checkbox indicating files should be overwritten if they have the same name. In ...
1
vote
2answers
309 views

BCS Security Access Using Secure Store in code question

I have Secure Store and also Kerberos setup on my development and production farms. I am using Event Receivers to access BCS data. I have verified that if I simply impersonate a user that has access ...
1
vote
2answers
597 views

Stop SPFieldMultiLineText from updating when not changed

I have a list with the requirement to keep a history of a frequently updated multi-line status. Additional requirements are to not show history on New and Edit forms and Views, but to show the ...
0
votes
1answer
526 views

“Detected use of SPRequest for previously closed SPWeb object” within Event receiver but no error when run in test harness

I have a very strange issue which I cannot explain. We have and event receiver and within this we instantiate our own class that does all the work we need it to do. As part of this we pass in an SPWEB ...
0
votes
1answer
227 views

Reporting Services Subscriptions doesn't fire Event Receivers

I have a SPItemEventReceiver on a SharePoint library which renames added files. Normally this works fine (Upload from website / WebDav). There is also a report server subscription which drops pdf's ...
0
votes
1answer
537 views

How to enable an Event Handler to intercept upload from email in document library

I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
5
votes
5answers
2k views

ItemAdded event receiver is not firing

My ItemAdded event recevier is not firing when the Word Automation Services adds a file to a Sharepoint document library. If I manually debug the ItemAdded event receiver, it is getting triggered. I ...
1
vote
2answers
169 views

SharePoint session events

I'm writing SharePoint webparts that are communicating with external system. Currently, on each request, a connection with system is made, user is authenticated and session is established - than ...
8
votes
3answers
3k views

Event handler vs. event receiver

http://msdn.microsoft.com/en-us/library/ms453149.aspx says To create the event handler 1. Start Microsoft Visual Studio 2010. 2. On the File menu, point to New, and then click Project. 3. In Project ...
1
vote
1answer
290 views

perform action on incoming mail

I need to perform simple decoding of .eml files and adding some contents from it to a list. I have already written the .eml decoding part and adding stuff from it to list, but i need to tell ...
1
vote
1answer
177 views

Item Adding and Item Updating triggers on Item Add to list

my list triggers item added and then item updated when I add a list item, but then when i add list item it takes me to update item form, where it asks me to update item details, so if i click next, ...
1
vote
1answer
108 views

Disable save item button while save process is not completed

User clicks on Save Button and saving procedure can take "few" seconds. User can click again..that`s why i need to disable save button, how can i do this?
0
votes
1answer
222 views

ItemUpdated event handler not working

I added a ItemUpdated event handler so what happens is when I upload a document it uploads it and takes me straight to edit item page, where I can made changes. now if I make any changes to it, no ...
0
votes
1answer
48 views

how to check custom property of added Item

There is a boolean column I added to a custom list, but I also have a feature on this custom list so that when a Item is added i have to check if this column exists or not and then its value. now i ...