0

I have created webpart and deploy it on web application level. It is displaying in all web application. How can i restrict to display on specific site.

Regards,

1

1 Answer 1

0

Scope the webpart feature to site or web, make sure Activate on Default is not set on the feature properties. Deploy your solution and the activate the feature from site collection feature (if site scoped) or site features (if web scoped) from the site settings

2
  • with this its not activate by default but it is visible in all web application. How to restrict that? Jul 3, 2013 at 8:56
  • You can't scope it more. But you can make the Feature hidden, and activate it with powershell Jul 3, 2013 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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