.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Event receivers in SharePoint 2010 sandbox.

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#


public class EventReceiver1 :

View Complete Post

More Related Resource Links

Quick Note: Add Event Receivers to SharePoint 2010 Lists

In this exercise, you add an event receiver to a custom Microsoft SharePoint 2010 list that is triggered when you attempt to delete an item in the list.

Item Event Receivers or way to validate data entered for External List in SharePoint 2010?

Hi everyone,

Are there Item Event Receivers for External List in SharePoint 2010? If not, is there a way to validate the item data entered from External List UI in SharePoint site?


Creating SharePoint 2010 Event Receivers in Visual Studio 2010 (Visual How To)

Watch the video and explore code as you learn to create and deploy an event receiver in Visual Studio 2010.

Sample: Creating SharePoint 2010 Event Receivers in Visual Studio 2010

Explore the code in this visual how-to article as you learn to create and deploy an event receiver in Visual Studio 2010.

Using Event Receivers in SharePoint Foundation 2010, Part 2

Find practical examples in this article that show you how to use events to enhance your SharePoint applications.

Using Event Receivers in SharePoint Foundation 2010, Part 1

Event receivers in SharePoint Foundation 2010 enable your custom code to respond when specific actions occur on a SharePoint object. Practical examples in this article show you how to use events to enhance your SharePoint applications.

Video: Creating SharePoint 2010 Event Receivers in Visual Studio 2010

Watch this visual how-to video as you learn how to create and deploy an event receiver in Visual Studio 2010.

SharePoint's Sandbox: Developing, Deploying and Monitoring Sandboxed Solutions in SharePoint 2010


The challenge in SharePoint development has always been the balance between creating and deploying solutions that you can trust not to damage or impair a SharePoint farm. A new feature in SharePoint 2010, called Sandboxed Solutions, enables farm administrators to feel comfortable that the SharePoint farm is safe, gives site collection administrators the authority to manage applications in their site collection, and provides developers with the flexibility to create solutions they know will be deployed in a safe and rapid manner.

Paul Stubbs

MSDN Magazine November 2009

Logging to SharePoint 2010 ULS log from sandbox


You can't log directly from sandbox code to the SharePoint ULS log. Developing code without any form of logging is out of this time, so you need approaches for the two situations you can end up with when developing sandbox code:

You don't have control over the server (BPOS scenario):

  • You can log to comments in your HTML code, I know it's terrible, don't log sensitive information
  • Write entries to a SharePoint "log" list (also take care of some form of clean up, for example if list longer that 1000 items, remove oldest item when writing new log message)

You have control over the server:

Video: SharePoint 2010: Executing Code in the Sandbox

Find out how the Sandboxed Solutions Service provides for a complete isolation system that ensures code running in a sandboxed solution cannot reach out to access information beyond the scope of the deployment. (Length: 12:01)

Sharepoint 2010 List Added Event Problem

Hi All, I have created List Added Event Handler. In that Event I want to Add Custom Field in List as List is created. I get an Error "The Specified Program Requires    a newer version of windows" Is there ant solution for it. I have tried it also creating new instances of spweb and spsite rather than getting it from "Properties" Thanks Saumil Thakkar

Event 3 - Forefront Indendity Manager with SharePoint 2010

Hi! Don´t know if this actully is in the wrong forum, but in my case this is the FIM service that comes with SharePoint 2010 that is the issue here. I got a bunch of event 3 error events in my event viewer that is pointing to the FIM Indentity Manager. I have the CU 2010 for June and Aug deployed. The synchronization is working but it´s not that nice to have all these events in the event viewer. The thing is that they have appeared after deploying the CU updates as I can remember. Below you have some exampels of some event 3: Microsoft.ResourceManagement.Service: Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManagerException: Forefront Identity Management Service does not support workflows of type 'Microsoft.ResourceManagement.Workflow.Activities.SequentialWorkflow, Microsoft.ResourceManagement, Version=4.0.2450.9, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.ActivateHost(ResourceManagementWorkflowDefinition workflowDefinition) at Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManager.StartWorkflowInstance(Guid workflowInstanceIdentifier, KeyValuePair`2[] additionalParameters) ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Microsoft.ResourceManagement.Workflow.Hosti

Intercept Check-In Event of Document Library in SharePoint 2010

we need to intercept the default check-in Event of the Document Library. The detailed requirements is as follows.   1. Intercept the check-in Event of Document Library. 2. Instead of the default check-in  page (normally this is the layout's checkin.aspx page), show our custom application page. 3. In the custom application page, allow users to provide some inputs. Validate the input values against values stored in database. 4. Once validated successfully, allow user to check-in the documents. Else, do not allow user to check-in the document.   One more additional requirement is the above things should happen only for our custom content type. In order to achieve the same, we are planning for deploying our custom document content types and perform the above operations on check-in event of the documents.     Another approach of performing the same is , have our own custom ECB Menu. The detailed process is as below.   a. Customize the check in menu (ECB) b. Show the custom form and get the inputs from user and do the validations c. On the OK button click, if validation is success, then update the meta data and check in the document or deny the process. d. But in this approach, we need to check the libraries version settings and that default functionalities should be added automatically to the check in process.   At this point of time, we a

sharepoint 2010 event receive

Hi, Hi, I have a two fields(mailid,cost,mailid2), i need a validation of mailIds if already existing  mails three time I need a validation for new request , I have user interface in InfoPath 201 0 , workflow SharePoint designer 2010 , everything is working now I need a validation mail id , if mail is already existing three time ,how to count mails ids individual mails how to i count Regards

How do I trap site creaeted event in sharepoint 2010.

I want to trap the site created event in sharepoint 2010. I have created custom site defintion and master page incorporated into that. For every site creation i want to inherit site from custom master page. so i need a site created event. Can any one suggest me how can i proceed.?

Can I get the PageRequest event in Sharepoint 2010.


I want to change the master page based on the type of user, if user is admin then i want to inherit the page from custom master page.

How can i do this.?

Event ID 6398 and 5586 (SharePoint 2010)


I have configured Search on a Single Farm SharePoint 2010 server on Windows Server 2008 R2. The crawls are working and I’m getting results on a search page, but the event log creates these two events every minute:

Critical Event 6398

The Execute method of job definition Microsoft.Office.Server.Search.Monitoring.HealthStatUpdateJobDefinition (ID 151f6f19-594d-4ba8-ab82-0b187839325a) threw an exception. More information is included below.

Could not find stored procedure 'dbo.Search_GetRecentStats'.


Error Event 5586

Unknown SQL Exception 2812 occurred. Additional error information from SQL Server is included below.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend