I had a problem with web parts being duplicated whenever their feature was reactivated, so I made a question about that.

It was answered (and correctly so, I think) - I have to programmatically remove the duplicates. However, in sandbox solutions you just can't use the SPLimitedWebPartManager class, which is needed for all the straightforward removal techniques.

So how can I remove web part in a sandbox solution, via code?


The answer is short - you cannot do that using a Sandboxed solution.

|improve this answer|||||
  • Sad but true. Unfortunately, deploying our solution as a sandbox one is one of our requirements. – Renan Apr 22 '13 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.