Creating custom pages in SharePoint
One of the really cool things about SharePoint is that you can create your own custom aspx pages like you would any ASP.NET application, but with a few tips you can leverage all the features of SharePoint like using web part zones and allowing customization and personalization.
When creating a custom page be sure to inherit from WebPartPage. Here is how you get the navigation on your own page.
1. Inherit from the WebPartPage class in your new webpage:
<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,
Microsoft.SharePoint,Version=11.0.0.0,
Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>
2. Create references to required tag libraries
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<script src="_layouts/1033/ows.js"></script> 6. Create table and add navigation server controls
<TABLE class="ms-main" CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%" HEIGHT="100%">
<!-- Banner -->
<TR valign="top">
<TD COLSPAN="3" WIDTH="100%">
<!--Top bar-->
<table class="ms-bannerframe" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td nowrap valign="middle"><img ID="onetidHeadbnnr0" alt="Logo" src="/_layouts/images/logo.gif"></td>
<td class="ms-banner" width="99%" nowrap ID="HBN100" valign="middle">
<!--webbot Bot="Navigation" startspan-->
<SharePoint:Navigation LinkBarId="1002" runat="server" ID="Navigation1" />
</td>
<td class="ms-banner"> </td>
<td nowrap class="ms-banner" style="PADDING-RIGHT: 7px">
<SharePoint:PortalConnection runat="server" ID="Portalconnection1" />
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
That's it! Once you've done this your page is "SharePoint" ready. You can define web part zones (using FrontPage 2003) for your web designers and developers to add new webparts to for customization and personalization. Enjoy!