MVC

Thoughts on Messaging and MVC

When I start to learn a new style of programming I like to experiment by creating my own versions of things. This has lead to writing my own ORM framework and Mime parser just to name a few of my coding accomplishments for which I pride my self. Writing each was a valuable learning experience that allowed me a much better understanding of similar software systems. › Continue reading

Saturday, July 25th, 2009 Coding, MVC 3 Comments

Refactoring the ASP.NET MVC project template – Part 4

I wasn’t planning on continuing this series until I’d had a chance to play with the new RC1 release of the MVC framework, but Phil Haack has a post up that I’d like to touch on. To summarize with the latest release the MVC team has added a ContentPlaceHolder to the head section of the Site.Master file. This is a good thing and has been recommended by others as an excellent way to control the page title, scripts and css files from within your views. The issue is that the head tag has the runat=”server” attribute. So while the page is being rendered by the server the view engine parses this tag and runs some asp.net code to “help” you.  In this case one thing it helps you with is adding a title tag if you didn’t provide one. If you construct your head section improperly you end up getting an error :

› Continue reading

Wednesday, January 28th, 2009 Coding, MVC No Comments

Refactoring the ASP.NET MVC project template authentication – Part 3

In part 3 I wanted to clean up a few small details. And once again I’ll  be focusing on the server side .net  code and saving the client side javascript for another post.

In this post I’ll be making use of the ASP.NET MVC Futures codebase which you can get here.

One of the complaints that is heard about MVC summed up by the following comment over at Los Techies “I’m not ready to start putting clunky C# code in my views, like asp.net MVC is using, feels like legacy asp all over again“. And yes many examples of this coding style exist including the LoginUserControl.ascx in the example MVC project.

› Continue reading

Monday, January 19th, 2009 Coding, MVC No Comments

Refactoring the ASP.NET MVC project template authentication – Part 2

When we left off last time we had cleaned up the Login action method. Now lets look at the Logout method:

› Continue reading

Sunday, January 18th, 2009 Coding, MVC No Comments

Refactoring the ASP.NET MVC project template authentication

I know this subject has been touched on before, but I can never find the links when I need them. So I decided I would write up my attempt at creating a better implementation of the MVC project template that ships with ASP.NET MVC Beta. I don’t claim any of these ideas were originally mine, if you know of a link to the original content please let me know and I’ll update this article. Now on with the show.

› Continue reading

Sunday, January 18th, 2009 Coding, MVC 4 Comments
Blog WebMastered by All in One Webmaster.

WP SlimStat