My name is Edward Tanguay. I'm an American software and web developer living and working in Berlin, Germany.
ASP.NET MVC
The next stage of ASP.NET, still in beta (Jan 2009), solves a lot of issues, e.g. viewstate.
 
ASP.NET MVC TOOL created on Wednesday, January 07, 2009 permalink
Follow the two-step instructions: download, copy files in, awesome designs for your ASP.NET sites.
 
ASP.NET MVC RADAR ITEM created on Wednesday, December 17, 2008 permalink
This is a blog site written in ASP.NET MVC as an example of a full application, try it out, open source at codeplex.
 
FORAY INTO ASP.NET MVC created on Wednesday, December 10, 2008 permalink
Building HelloWorld with ASP.NET MVC
ASP.NET MVC has so many nice things (no viewstate, no changing ids, no automatically inserted javascripts, allows multiple-forms, easily testable) I have to test it out. Oh yeah, and I need it for my new job.
  1. Checking out if you can make mvc projects in vs.net by default, not in vs.net 2008, checking web developer express: no, ok.
  2. Ok, downloading here.
  3. Clicked on AspNetMVCBeta-setup.msi download.
  4. Installing on my vista with web developer express, 2 minutes, 3 minutes....finished. the release notes just take you to http://www.asp.net/mvc.
  5. starting visual web developer, create website doesn't show you MVC, you have to click create project and then choose C#/Web then choose it:
  6. Named it "testMvcHelloWorld".
  7. Watching Stephen Walther, kind of eerie how he's always on the screen.
  8. It didn't ask me if I wanted to make unit tests, perhaps in vs.net 2008.
  9. Clicked F5 and have a website, so it works out of the box, nice.
  10. Looking around in the code.
  11. Making new ViewData in controller, would be nice if this were in intellisense: ViewData["Message2"], worked.
  12. Making css changes, intellisense, nice, worked.
  13. Changing tile and title tag.
  14. Ahh, each view has ~/Views/Shared/Site.Master, like 2.0 master pages.
  15. Jquery in as default, nice.
  16. So everything is in Site.Master, and CSS, very straightforward.
  17. Now adding a new page, this works, puts it in menu.
    <ul id="menu">
    <li><%= Html.ActionLink("Home", "Index", "Home")%></li>
    <li><%= Html.ActionLink("About Us", "About", "Home")%></li>
    <li><%= Html.ActionLink("Third Page", "Third", "Home")%></li>
    </ul>
  18. When you click you get error, right, now making "Third" view.
  19. So just made the "Third.aspx" view.
  20. then in HomeController.cs new method for view:
            public ActionResult Third()
            {
                ViewData["Title"] = "Third Page";

                return View();
            }
  21. Works, ok nice, now looking at the login functionality that is built in.
  22. This is all implemented as Views/Account and the AccountController.cs.
  23. form action goes here:
    <form action="http://localhost:50829/Account/Login" method="post">
  24. The form is being handled here in the account controller.
    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult Login(string username, string password, bool rememberMe, string returnUrl)
  25. Uploaded to my server, they obviously don't have ASP.NET MVC installed.
  26. Checked the size of the login database ASPNETDB.MDF: 10MB just like in old asp.net, hmmm, surely that's not necessary.
  27. Ok that's enough for a helloworld, will watch both Paul Litwin videos about making database driven asp.net mvc site later to get all of this down.
 
ASP.NET MVC CODE EXAMPLE created on Friday, January 23, 2009 permalink
How to find how which user accesses App_Data folder.
If you are getting a UnauthorizedAccessException error when you try to modify files in your App_Data folder, put this code anywhere on your view to find out which user is accessing the folder and then you can change the rights of that user:
<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name);
        base.OnLoad(e);
    }
</script>
 
ASP.NET MVC ARTICLE created on Tuesday, January 13, 2009 permalink
If you want to get the telerik grid control going in ASP.NET MVC, check out this article.
 
ASP.NET MVC TUTORIAL last updated on Friday, January 23, 2009 permalink
Tutorial: Set Up ASP.NET MVC Development Environment
This tutorial shows you step-by-step how to install everything you need to develop ASP.NET MVC websites including the free Visual Web Developer 2008 Express and the free SQL Server Express. This tutorial is for you if you want to get things set up fast and get some examples going so that you can begin learning ASP.NET MVC. Just added Step 8: Give Your Site a Layout