开发者

How do you disable adding the same webpart multiple times from an asp:catalogzone?

开发者 https://www.devze.com 2022-12-17 11:53 出处:网络
If have a standard aspx page (non-sharepoint) that hosts webparts It contains one asp:catalogzone and four asp:WebPartZone\'s.

If have a standard aspx page (non-sharepoint) that hosts webparts

It contains one asp:catalogzone and four asp:WebPartZone's.

I have a business requirement that my new webpart must start in the catalog and a user can choose whether to add it to a zone to display it, (not displayed by default).

Easy so I add it to the catalog zone instaed of the webpart zone.

Problem: The user can add开发者_StackOverflow the same webpart multiple times and it looks really bad.

Oddly the default behavior for a webpart when it is originally hosted in an asp:WebPartZone is that it only appears in the catalog zone when it has been closed, and then it can only be added back to a webpart zone once, I want the same behavior but I want my webpart to start in the catalog.

Sounds easy.


you have to create a custom catalog for filtering the existing webparts like in this example: http://geekswithblogs.net/aspringer/archive/2007/08/21/114855.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消