c# - Sharepoint Web Part restrict to zone -


is there way restrict web part zone? know can restrict using allowzonechange flag, possible make sure web part can added zones? have web parts viable in wide column (zones), want make sure no 1 tries add web parts narrow columns (zones). there way of accomplishing this?

if stick in quick add group same name "wide" one, it'll show @ top of list default when tries add web part in zone.

however, show normal further odwn list when tries add zone.

however, don't think it's possible @ - only method can think of, off top of head (somehow, maybe through modifyin page layout directly) add code event handler spwebpartmanager.webpartadded check webpart , zone, , remove if added in wrong zone.

however, i've never tried this, nor know if work - feel free give try though. blog if work!

have @ info on event itself.

http://msdn.microsoft.com/en-us/library/ms157584


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -