ASP.NET MVC 3 Tools Update, now with Drop-Down Lists!

The ASP.NET MVC 3 Tools Update includes EF Code First as a preinstalled NuGet package. You can use EF Code First to generate models and then scaffold them with the updated Add Controller tool. Of course, you don’t have to use EF Code First to take advantage of the updated scaffolding in the ASP.NET MVC…

4

Add the ASP.NET MVC 3 Code Templates to your application with Nuget

Before (Manual) ASP.NET MVC uses T4 templates to scaffold Views and Controllers through the Add View and Add Controller dialogs. A lot of people probably don’t know that these templates can be customized quite easily to generate whatever markup you prefer. Really, the only pain point is finding the code templates on your machine and…

4

Visual Studio 2010 MVC 2 Upgrade Wizard

(Cross post from Visual Web Developer team site: http://blogs.msdn.com/webdevtools/archive/2010/04/13/visual-studio-2010-mvc-2-upgrade-wizard.aspx) Prior to the RTM release of Visual Studio 2010, the only way to upgrade an ASP.Net MVC 1 application to ASP.Net MVC 2 was to use Eilon Lipton’s tool. With the release of Visual Studio 2010 you will now be able to open your MVC 1…

0

On PHP

I just finished a two day PHP training with Keith Casey (Casey Software) with Blue Parabola and a key contributor to web2project and and thought I would write down my thoughts and notes before I forget everything. Here are some quick observations: PHP: PHP is all about getting stuff done and there are many different ways…

2

Single Project Add View in ASP.Net MVC 2 Preview 2

Cross Post from http://blogs.msdn.com/webdevtools/archive/2009/10/15/single-project-add-view-in-asp-net-mvc-2-preview-2.aspx Last week we released ASP.Net MVC 2 Preview 2 for Visual Studio 2008 Sp1. In the box support for single project areas is now included and the Add View tool has been modified to streamline this scenario. A walkthrough that creates two simple single project areas can be found here. If…

0

Random woes

I hate code like this:  void ProductsListView_ItemEditing(Object sender, ListViewEditEventArgs e)  {    ListViewItem item = ProductsListView.Items[e.NewEditIndex];    Label dateLabel = (Label)item.FindControl(“DiscontinuedDateLabel”);    if (String.IsNullOrEmpty(dateLabel.Text))      return;    //Verify if the item is discontinued.    DateTime discontinuedDate = DateTime.Parse(dateLabel.Text);    if (discontinuedDate < DateTime.Now)    {      Message.Text = “You cannot edit a discontinued item.”;      e.Cancel = true;      ProductsListView.SelectedIndex = -1;    }         } Indexing…

0

ASP.Net MVC V2 Preview 1 Released

ScottGu just posted details on all of the new features for ASP.Net MVC: http://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-preview-1-released.aspx I haven’t had much time to play with ASP.Net MVC lately as we are hard at work on Dev10 but there are some very cool looking features that I am excited to try out. First off, there is support for areas…

0

I am on twitter

find me on twitter at twitter.com/cartano, I’ll be making quick posts about mvc when I get the chance.

0

App Building Notes Day 2

Today I got a lot of work in with the ASP.Net data controls. I haven’t really used these much before as I have been working almost solely with ASP.Net MVC for over a year. The three controls I played with were DetailsView, ListView, and FormView. FormView seems to be the equivalent of ListView but for…

0

App Building Notes Day 1: 10:55

Okay, now on to the Answer page. Wait a second, how do I get the id of the question? In ASP.Net MVC the viewpage can be strongly typed with a question object. Do I need to parse a url? Access some data in a hidden field? Something else? Am I going to need to use…

1