User Control Page /DesktopPortalBanner.ascx (C#)
Uses Code Behind Page Page /DesktopPortalBanner.ascx.cs (C#)
1: <%@ Control CodeBehind="DesktopPortalBanner.ascx.cs" Language="c#" AutoEventWireup="false" Inherits="ASPNetPortal.DesktopPortalBanner" %>
2: <%@ Import Namespace="ASPNetPortal" %>
3:
4: <%--
5:
6: The DesktopPortalBanner User Control is responsible for displaying the standard Portal
7: banner at the top of each .aspx page.
8:
9: The DesktopPortalBanner uses the Portal Configuration System to obtain a list of the
10: portal's sitename and tab settings. It then render's this content into the page.
11:
12: --%>
13:
14:
15: <table width="100%" cellspacing="0" class="HeadBg" border="0">
16: <tr valign="top">
17: <td colspan="3" class="SiteLink" background="<%= Request.ApplicationPath %>/images/bars.gif" align="right">
18: <asp:label id="WelcomeMessage" forecolor="#eeeeee" runat="server" />
19: <a href="<%= Request.ApplicationPath %>" class="SiteLink">Portal Home</a> <span class="Accent">
20: |</span> <a href="<%= Request.ApplicationPath %>/Docs/Docs.htm" target="_blank" class="SiteLink">
21: Portal Documentation</a>
22: <%= LogoffLink %>
23:
24: </td>
25: </tr>
26: <tr>
27: <td width="10" rowspan="2">
28:
29: </td>
30: <td height="40">
31: <asp:label id="siteName" CssClass="SiteTitle" EnableViewState="false" runat="server" />
32: </td>
33: <td align="middle" rowspan="2">
34: <a href="http://www.asp.net"><img id="logo" src="<%=Request.ApplicationPath%>/images/poweredby_simple.gif" border="0"></a>
35: </td>
36: </tr>
37: <tr>
38: <td>
39: <asp:datalist id="tabs" cssclass="OtherTabsBg" repeatdirection="horizontal" ItemStyle-Height="25" SelectedItemStyle-CssClass="TabBg" ItemStyle-BorderWidth="1" EnableViewState="false" runat="server">
40: <ItemTemplate>
41: <a href='<%= Request.ApplicationPath %>/DesktopDefault.aspx?tabindex=<%# Container.ItemIndex %>&tabid=<%# ((TabStripDetails) Container.DataItem).TabId %>' class="OtherTabs"><%# ((TabStripDetails) Container.DataItem).TabName %></a>
42: </ItemTemplate>
43: <SelectedItemTemplate>
44: <span class="SelectedTab"><%# ((TabStripDetails) Container.DataItem).TabName %></span>
45: </SelectedItemTemplate>
46: </asp:datalist>
47: </td>
48: </tr>
49: </table>