Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Samples / PestControl / Castle.Applications.PestControl.Web / views / layouts / default.aspx
blob7fd890cd6f62be987e44f7afb66ed199cf2cf48f
1 <%@ Page Inherits="Castle.MonoRail.Framework.Views.Aspx.MasterPageBase" %>\r
2 <%@ Register tagprefix="rails" namespace="Castle.MonoRail.Framework.Views.Aspx" assembly="Castle.MonoRail.Framework" %>\r
3 <script language="C#" runat="server">\r
4   \r
5   public String PageTitle\r
6   {\r
7         // get { return (this as IAttributeAccessor).GetAttribute("title"); }\r
8         get { return "Home"; }\r
9   }\r
10   \r
11 </script>\r
12 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
13 <HTML>\r
14         <HEAD>\r
15                 <title>PestControl - <%= PageTitle %></title>\r
16         <link href="../../css/def.css" rel="stylesheet" type="text/css">\r
17         </HEAD>\r
18         <body>\r
19                    <div class="titlecontainer">\r
20                      <table border=0 width="98%">\r
21                                 <tr class="titlecontainer">\r
22                                         <td>\r
23                                      PestControl - <%= PageTitle %>\r
24                                         </td>\r
25                                         <td align=right>\r
26                                             <% \r
27                                                    if (Context.User != null && Context.User.Identity.IsAuthenticated)\r
28                                                {\r
29                                             %>\r
30                                                 <font size=-1>Logged in as <%= Context.User.Identity.Name %></font>\r
31                                             <% }\r
32                                                else if (!Context.User.Identity.IsAuthenticated) \r
33                                                    {\r
34                                             %>\r
35                                                 <font size=-1>Not logged on</font>\r
36                                             <% } %>\r
37                                         </td>\r
38                                 </tr>\r
39                      </table>\r
40                    </div>\r
42                    <div class="container" align="center">\r
43                    <rails:Contents id="contents" runat="server" />\r
44                    </div>\r
45                         \r
46         </body>\r
47 </HTML>\r