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

App Building Notes Day 1: 10:46 a.m.

This week the web tools team is working on Beta 2 apps. My team is building an internal question and answer site using traditional webforms. I’ll post on what I liked and hated about webforms compared to ASP.Net MVC. I will try to be impartial but no promises since I have been working on ASP.Net MVC for…

1

Enable FTP on the default website on Win7

In Win7, FTP does not come enabled on the default website. To enable FTP you can either work through a wizard in inetmgr or run the following commands: appcmd.exe set config -section:sites /+[name='”Default Web Site”‘].bindings[protocol=’ftp’,bindingInformation=’*:21:’] iisreset  The first command enables the ftp protocol on the default website and listens for traffic on port 21. Also,…

0

ASP.Net MVC Shortcuts

Here is a cross post from my team’s blog: http://blogs.msdn.com/webdevtools   Add Controller (Ctrl-M Ctrl-C) Add Controller is a simple dialog box that lets you quickly add controllers to ASP.Net MVC Applications. Right-Click the ‘Controllers’ folder or simply press Ctrl-M Ctrl-C to invoke this dialog. Add View (Ctrl-M Ctrl-V) The Add View is the easiest way to add views to…

1

Review of Win 7

I only skimmed this so far but it looks pretty detailed. http://activewin.com/reviews/previews/windows7/

1