ASP.NET Page /MobileDefault.aspx (C#)
Uses Code Behind Page Page /MobileDefault.aspx.cs (C#)
1: <%@ Page Language="c#" Inherits="ASPNetPortal.MobileDefault" CodeBehind="MobileDefault.aspx.cs" AutoEventWireup="false" %>
2: <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
3: <%@ Register TagPrefix="portal" Namespace="ASPNetPortal.MobileControls" Assembly="Portal" %>
4: <%--
5:
6:     The MobileDefault.aspx page is used to load and populate each Mobile Portal View.  It accomplishes
7:     this by reading the layout configuration of the portal from the Portal Configuration
8:     system. At the top level is a tab view, implemented using a TabbedPanel custom control.  
9:     Each portal view is inserted into this control, and portal modules (each implemented  
10:     as an ASP.NET user control) are instantiated and inserted into tabs.
11:
12: --%>
13: <mobile:Form runat="server" Wrapping="NoWrap" Paginate="true" PagerStyle-Font-Name="Verdana" PagerStyle-ForeColor="#ffffff" PagerStyle-Font-Size="Small" id="Form1">
14:     <mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
15:         <Choice BackColor="#000000" Filter="isJScript">
16:             <HeaderTemplate>
17:                 <table cellSpacing="0" cellPadding="0" width="100%" border="0">
18:                     <tr>
19:                         <td>
20:                             <img height="45" src="data/mobilelogo.gif" width="180">
21:                         </td>
22:                     </tr>
23:                 </table>
24:                 <table height="270" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0">
25:                     <tbody>
26:                         <tr>
27:                             <td>
28:                                 <img height="220" src="images/spacer.gif" width="2">
29:                             </td>
30:                             <td vAlign="top">
31:             </HeaderTemplate>
32:             <FooterTemplate>
33:                 </td>
34:                 <td>
35:                     <img height="220" src="images/spacer.gif" width="2">
36:                 </td>
37:                 </tr></tbody></table>
38:             </FooterTemplate>
39:         </Choice>
40:         <Choice>
41:             <HeaderTemplate>
42:                 <mobile:Label id="Label1" runat="server" StyleReference="title">
43:                     IBuySpy Portal</mobile:Label>
44:             </HeaderTemplate>
45:         </Choice>
46:     </mobile:DeviceSpecific>
47:     <portal:TabbedPanel id="TabView" runat="server" ActiveTabTextColor="#ffffff" ActiveTabColor="#000000" TabTextColor="#000000" TabColor="#bbbb9a">
48:     </portal:TabbedPanel>
49: </mobile:Form>