Wednesday, March 28, 2012

Atlas WebParts and Subclassed WebPartManager? PLEASE?

I am working on a portal solution in which I've subclassed theWebPartManager class in order to override the OnAuthorizeWebPart methodto make use of the AuthorizationFilter property within myWebParts. Is there any way I can use the Atlas WebParts with asubclassed WebPartManager?

thanks,

jaredYes, you will need to write a new class that derives from the Atlas WebPartManager, and copy the code from your existing derived WebPartManager. If you plan to support both WebPartManagers, you will probably want to move the common code into a separate class.

-Mike

No comments:

Post a Comment