Tagged Questions
1
vote
1answer
417 views
Getting SPWeb in feature receiver
While testing my solution I receive an error on Feature activation:
Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects ...
1
vote
2answers
115 views
Add script reference to all pages in a site collection when a feature is activated
I'd like to have a feature which adds a script reference to all pages in a site collection when activated.
This seems like a scenario where I should just modify the master page, but for it to affect ...
0
votes
3answers
232 views
Getting SPWeb Object in two ways
I want to access SPWeb object in feature under its FeatureActivated method. There are two ways to do this:
Public Override void FeatureActivated(SPFeatureReceiverProperties properties)
{
//Method 1
...