How to restrict WebPartZone to add Max 2 WebParts in sharepoint 2010?


  • Set maximum number of WebParts per WebPartZone

    I have a webpartzone in page layout and i want to  retrict user to add not more than two(Any Number) webparts in that WebpartZone.

    Hi All,

    Thanks for Update.

    I need this solution for SharePoint 2010 environment. How can i achieve this at code behind or catch an Event to restrict, To add new webpart if it exceeds to specified number.

    Thanks in advance.

    • Edited by Gaya Prasad Wednesday, June 29, 2011 1:26 PM
    Monday, June 27, 2011 9:41 AM


All replies