Geeks With Blogs
Lee Brandt's Blog You're only as smart as your last line of code MVC
MVC3 RC _ViewStart Page
For those of you following the MVC releases, you will see something new in your File->New for MVC3 RC: _ViewStart.cshtml (_ViewStart.vbhtml for you VBers). This is a common place to dry out view dependencies. The most common view dependency is the MasterView it will use. To that end, the default _ViewStart page you get from a File->New MVC3 project has just the: 1: @{ 2: Layout = "~/Views/Shared/_Layout.csh... 3: } This seems to be done by convention. The view must be named “_viewstart.cshtml” ......

Posted On Saturday, November 13, 2010 2:51 PM

How do YOU arrange your ASP.NET MVC app?
As I am learning about TDD and MVC, one thing comes up. How should I arrange my models, views and controllers? Of course, I know I need to set up the models view and cotrnollers folders for ASP.NET MVC, but what view actions should go into a controller? An example may help illustrate my question: In the default project template for an ASP.NET MVC app, you get a HomeController which has to actions in it: Index and About. Should the about really be an action on the home controller? I guess my initial ......

Posted On Monday, April 14, 2008 2:57 AM

What's with all the NEW stuff?!!??
As I get settled in at this new job, I begin to take stock of what the company wants to accomplish: a solid, extensible product with the longest possible useful life. Given the fact that this product will probably take 2-3 years (total) to develop, that means learning the newest stuff and looking at some technologies that have yet to be released. The new technologies coming out of Microsoft in the next six to twelve months is staggering. Beyond products (like Windows 2008, SQL Server 2008 and Visual ......

Posted On Thursday, April 3, 2008 1:11 PM

TDD, MVC, IOC/DI & ASP.NET (MAN! that's a lot of initials!)
I am creating a blog engine. Not because the world needs another, but because there are some techniques I want to learn about and creating this very straight-forward project will allow me to do that. First step was to create the project and start experimenting with Test-Driven Development inside MVC for ASP.NET. I started by searching for TDD MVC and ASP.NET which led me to this article by phil haack. While trying to put together some of my first tests, I had to use a mock object. The easiest way ......

Posted On Thursday, April 3, 2008 1:11 PM

Copyright © Lee Brandt | Powered by: GeeksWithBlogs.net