Getting Started

82 views
Skip to first unread message

Jon Ceanfaglione

unread,
Sep 9, 2012, 8:34:53 AM9/9/12
to simplew...@googlegroups.com
I'm trying to do the standard "is this working" using an Index handler and a view.   I'm getting a 404 which tells me I've screwed something up.  What am I screwing up?  Thanks in advance.

1. created empty asp.net web application

2. nuget-ed simple.web, simple.web.aspnet, etc...

3. [UriTemplate("/")]
    public class Index : IGet
    {
        public Status Get()
        {
            return 200;
        }
    }

4.@handler Website.Index

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
    <head>
        <title>title</title>
    </head>
    <body>
        <div>
                hello!  it's okay, I'm okay.  
        </div>
    </body>
</html>

Mark Rendle

unread,
Sep 9, 2012, 10:34:39 AM9/9/12
to simplew...@googlegroups.com
You need to remove the @Layout = null; line. Layouts are going to be supported soon, but are not yet.

Cheers,
Mark

Sent from my iPad
--
You received this message because you are subscribed to the Google Groups "SimpleWeb Users" group.
To post to this group, send email to simplew...@googlegroups.com.
To unsubscribe from this group, send email to simpleweb-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/simpleweb-users/-/GFmIUCOgdRkJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jon Ceanfaglione

unread,
Sep 9, 2012, 10:56:17 AM9/9/12
to simplew...@googlegroups.com

Thanks Mark.  Maybe that's something I can contrib.

Mark Rendle

unread,
Sep 9, 2012, 12:43:10 PM9/9/12
to simplew...@googlegroups.com
Dude, if you can contribute anything on the Razor side I'd be hugely grateful. It does my head in. :)

Cheers,
Mark
Reply all
Reply to author
Forward
0 new messages