Home > DeveloperSection > Interviews > Why we use the properties.current.web instead of SPContext.Current.web in event receiver?

Posted on    September-10-2012 5:58 AM

 SharePoint SharePoint 
 1 Answer(s)
  2886  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    September-10-2012 12:00 AM

When we deploy project from Visual studio then we can use the SPContext.Current.web but when we use the powershell to activate or deactive the feature then we have to use properties.current.web because there is no access of browser here.

Don't want to miss updates? Please click the below button!

Follow MindStick