using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Castle.MonoRail.Framework;
using Castle.MonoRail.Views.AspView;
using RetailLink.Web.Controllers;
using RetailLink.Core;
using RetailLink.Web.Views;
namespace CompiledViews
{
public class layouts_default : RetailLink.Web.Views.View
{
protected override string ViewName { get { return "\\layouts\
\default.aspx"; } }
protected override string ViewDirectory { get { return "\
\layouts"; } }
public override void Render()
{
Output(@"<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.1//EN"" ""http://
www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"">
<html>
<head>
<meta http-equiv=""Content-Type"" content=""text/html;
charset=iso-8859-1"" />
<title>[Title Goes Here]</title>
<link rel=""stylesheet"" href=""");
Output(siteRoot);
Output(@"/Content/Css/base.css"" />
<link rel=""stylesheet"" href=""");
Output(siteRoot);
Output(@"/Content/Css/thickbox.css"" />
<script type=""text/javascript"" src=""");
Output(siteRoot);
Output(@"/Content/Js/jquery-1.3.js""></script>
<script type=""text/javascript"" src=""");
Output(siteRoot);
Output(@"/Content/Js/jquery.validate.min.js""></script>
<script type=""text/javascript"" src=""");
Output(siteRoot);
Output(@"/Content/Js/sbi.utilities.js""></script>
<script type=""text/javascript"" src=""");
Output(siteRoot);
Output(@"/Content/Js/stevenlevithan.date.format.js""></script>
<script type=""text/javascript"" src=""");
Output(siteRoot);
Output(@"/Content/Js/thickbox.js""></script>
</head>
<body>
<div id=""header"">
<span class=""left"">[bread crumb trail]</span><span
class=""right"">");
Output(Context.Session[Keys.Session.USER_DISPLAY_NAME]);
Output(@"</span>
<hr style=""clear:both;width:100%;"" />
</div>
<div id=""menu"">
<ul>
<li>Configuration
<ul>
<li><a href='");
Output(siteRoot);
Output(@"/email/index.mvc'>Email Addresses</a></li>
<li><a href='");
Output(siteRoot);
Output(Url.create<CategoryController>(c=>c.index()));
Output(@"'>Fine Line</a></li>
<li><a href='");
Output(siteRoot);
Output(@"/item/index.mvc'>Item</a></li>
<li><a href='");
Output(siteRoot);
Output(Url.create<DistributionCenterController>(c=>c.index()));
Output(@"'>Distribution Center</a></li>
<li><a href='");
Output(siteRoot);
Output(@"/movement/upload.mvc'>Upload Movement Data</a></li>
<li><a href='");
Output(siteRoot);
Output(@"/movement/update.mvc'>Update Movement Data</a></li>
</ul>
</li>
</ul>
</div>
<div class=""left"">");
Output(ViewContents);
Output(@"</div>
</body>
</html> ");
}
}
}
maybe this is a problem with lambas and expressions, not generics
On Feb 4, 9:18 am, Ken Egozi <[email protected]> wrote:
> please turn on saveFiles="true" in aspview config and post the
> layouts_default.cs file
>
> On Wed, Feb 4, 2009 at 2:19 PM, Jason Meckley <[email protected]>wrote:
>
>
>
>
>
> > trunk - rev 5540
>
> > On Feb 4, 1:49 am, Ken Egozi <[email protected]> wrote:
> > > just to make sure - which version are you using?
>
> > > On Wed, Feb 4, 2009 at 4:39 AM, Jason Meckley <[email protected]
> > >wrote:
>
> > > > I was using vcompile (just to try it out) until i was getting compile
> > > > errors. right now I'm using the auto-recompile.
> > > > Ken, the codedom node wasn't there before. I just added it, but I'm
> > > > still getting the same compile errors.
> > > > reviewing the compiled code the problem may be the 3.0 syntax.
>
> > > > any ideas for a next step?
>
> > > > On Feb 3, 3:11 pm, Ken Egozi <[email protected]> wrote:
> > > > > did you enable the 3.5 compiler?
>
> > > > > you have to stick
> > > > > <system.codedom>
> > > > > <compilers>
> > > > > <compiler language="c#;cs;csharp" extension=".cs"
> > > > > warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System,
> > > > > Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
> > > > > <providerOption name="CompilerVersion" value="v3.5"
> > />
> > > > > <providerOption name="WarnAsError" value="false" />
> > > > > </compiler>
> > > > > </compilers>
> > > > > </system.codedom>
>
> > > > > in the web.config file
>
> > > > > On Tue, Feb 3, 2009 at 9:59 PM, Victor Kornov <[email protected]>
> > wrote:
> > > > > > There is an option in AspView config (not vcompile) to save ffiles
> > > > after
> > > > > > they have been transalted to pure CS. That might give an idea of
> > what's
> > > > > > going on.
>
> > > > > --
> > > > > Ken Egozi.
> > > >http://www.kenegozi.com/bloghttp://www.delver.comhttp://www.musicglue.
> > ..
>
> > > --
> > > Ken Egozi.
> >http://www.kenegozi.com/bloghttp://www.delver.comhttp://www.musicglue...
>
> --
> Ken
> Egozi.http://www.kenegozi.com/bloghttp://www.delver.comhttp://www.musicglue.comhttp://www.castleproject.orghttp://www.gotfriends.co.il
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---