Blog- SoHo Dragon

#DragonTalk

Tabbed web parts

If you ever want to tab web parts on a page so they can be displayed horizontally, rather than vertically, use this text in designer:

 orientation="Horizontal"

 eg:

 <WebPartPages:SPWebPartManager runat="server">
</WebPartPages:SPWebPartManager>
<WebPartPages:WebPartZone runat="server" orientation="Horizontal" title="Zone 1">

<WebPartPages:ImageWebPart runat="server" VerticalAlignment="Middle" AllowEdit="True" AllowConnect="True" ConnectionID="00000000-0000-0000-0000-000000000000" Title="Image Viewer" IsIncluded="True" Dir="Default" BackgroundColor="transparent" IsVisible="True" CatalogIconImageUrl="/_layouts/images/msimagel.gif" AlternativeText="" AllowMinimize="True" ExportControlledProperties="True" ZoneID="" HorizontalAlignment="Center" ImageLink="" ExportMode="All" AllowHide="True" SuppressWebPartChrome="False" DetailLink="" HelpLink="" FrameState="Normal" MissingAssembly="Cannot import this Web Part." PartImageSmall="" AllowRemove="True" HelpMode="Modeless" FrameType="Default" AllowZoneChange="True" PartOrder="2" Description="Displays a specified image." PartImageLarge="/_layouts/images/msimagel.gif" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{ef59e74a-d586-4886-bb4e-839781f2adff}" WebPart="true" Height="" Width=""></WebPartPages:ImageWebPart>

<WebPartPages:ContentEditorWebPart webpart="true" runat="server" __WebPartId="{5C6D12CE-5695-48F8-8E70-BF27D2E989D2}"><WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">

                <Title>Content Editor</Title>

                <Description>Allows authors to enter rich text content.</Description>

                <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>

<PartOrder>4</PartOrder>

<ID>g_5c6d12ce_5695_48f8_8e70_bf27d2e989d2</ID>

</WebPart></WebPartPages:ContentEditorWebPart></WebPartPages:WebPartZone>

Tags

see all