Why do we use properties.current.web instead of SPContext.Current.Web in an event receiver class?

The reason we are using the properties.current.web in the event receiver is because it is not directly accessible over the browser.
Since a normal custom application is accessible over the browser we can use the SPContext.Current.Web.

Comments

Popular posts from this blog

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application

What is the difference between DDL, DML and DCL?