Hanselminutes On 9

Hanselminutes on 9 - ASP.NET MVC 2 Preview 1 with Phil Haack and Virtual Scott

Download this episode

Download Video

Description

Scott's in Redmond (or IS he?) and talking to Phil Haack about the release of ASP.NET MVC 2 Preview 1. Phil give us a tour of some of the new features in this high-tech and inappropriate use of technology. A video of a Phil's screen? Hasn't Scott or Phil heard of a screencast? Still, enjoy. Smiley
You can download ASP.NET MVC 2 Preview 1 if you like, too.

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • marko999

      I cannot watch video..it sais: media failure. try reloading the page or visiting main site for assistance

    • Glucose

      Sorry, it works here for me.

       

      Try clicking on the "Formats" drop down. You can download 7 different other video formats directly. 

    • Rich Parker

      Great video - liked the impromptu style vs. traditional planned screencast! Smiley

    • TommyCarlier

      Instead of Html.DisplayFor(dinner => dinner), couldn't you add a shortcut-method Html.DisplayForMe() or Html.DisplayForModel()? Wouldn't that be more readable?

    • Felbus

      Great video, thanks, this is a lot like MVC XForms by Jon Curtis, glad it made its way in to the release, nice..

    • blad3runn69

      cool stuff thank ü

    • D0cw

      Love the interview style, very informative and dynamic... keep up the good work!

    • elijahmanor

      Great stuff Phil & Scott... about to download and start using in my project Wink

    • jnystrom

      Cannot get this video to run either...have tried both IE 7 and Firefox and different formats.  In IE it looks like it is buffering but just spins and get the error message that marko999 got in Firefox.

    • jnystrom

      I got it on this refresh

    • Mitch​Labrador

      Great video Scott, I like this interview style. I'm exicted about V2 being in the box with VS2010.

       

      I'm impressed with how steady you were able to hold the camera. Here is a tool that might make it easier on you for this type of interview. http://www.amazon.com/Kodak-68-Anywhere-Professional-Monopod/dp/B000REPUZO/ref=pd_cp_p_3 

       

      My videos have improved in quality quite a bit since I got one  Smiley

    • zman13

      I'm running IE8 and the only formats that work for me are the audio only ones. Cant get video in any of the formats to work

    • Yoann. B

      Great stuff !! Smiley

       

      How does Areas work ? I can't found any resources about this feature ...

       

      Thanks !

    • jvervoorn

      Is that a normal channel9 guy, it looks bigger? But then I wouldn't know how big they are because I've been waiting forever for my 9Guy. I have sent in 2 postcards over the last several years, and still nothing. I have several foam dudes that I have earned by watching webcasts and they are lonely for their fellow superhero 9 guy (The orginal superhero). I don't want to cry but if that is what it takes, please send me one soon.

       

      Don't want to post email or address so please respond to this post and tell me where to email my address.  Becarefull though I'm pretty sure i'm not the only one who wants one.

    • aL_

      hey scott, next time you should crawl out of the monitor Ring (Ringu) style Wink that should really freak phil out Smiley

       

    • tbehunin

      So, is your guys MVC 1.0 book obsolete now? Smiley Should I hold off purchasing till you guys come out with v2 of the book?

    • kennethj

      This is almost worst then cloverfield. I need to get some motion sickness pills and I'll try to watch it again later.

    • alivemedia

      Smiley

    • Glucose

      Funny you mentioned that. That was some feedback I gave them JUST yesterday. Great idea.

    • Glucose

      Have you tried downloading it from the Format's Tab? Where are you located (in the world?)

    • Glucose

      Thanks! I'll pick one up now.

    • dm1608

      Why is that "Inside Visual C++" book being used as a monitor stand?   It's the holey grail of C++ programming!

       

       

    • maxx.erik

      You two guys are the most entertaining to watch... Funny, quick, smart... Good team!

       

      Question: In the interview you guys talked about having a resource string in place of the label name. Why was it not available in the situation above and will it be? Example: [DisplayName("Contact Phone", <% reference %>)]

       

      Anyways, good cast.

       

       

    • Haacked

      Thanks!

       

      Good question. That was a bit of ignorance on my part. That attribute is  System.ComponnentModel.DisplayNameAttribute which is part of System.dll. It is a pre-existing attribute that we just happen to support and it wasn't designed with the localization features that our newer data annotations are designed with. Unfortunately, with DisplayNameAttribute, the general idea is you have to subclass it to get localization. Yeah, that's annoying.

       

      There are new attributes coming in ASP.NET 4 so I'll need to figure out what the suggested pattern will be.

       

      All the validation components do allow setting resource keys such as ErrorMessageResourceType and ErrorMessageResourceKey.

    • maxx.erik

      Ahhh.... Well, it's not so annoying - I was curious none the less. Thanks for the answer and explanation ... Still can't wait for asp.net4

       

       

    • alivemedia

      It would be nice if you could do EditorFor and it output the label, the textbox and the validation tag - I think 90% of the time that's what myslef and others would be doing anyways.  Just a thought.

    • ceilidhboy

      Great vid guys!

       

      Scott, I reckon it would be even better if you locked your exposure and colour balance so that the camera doesn't keep trying to compensate as you point the camera at the screen and then at Phil with the bright lamp behind Wink

       

      MikeS.

    • cody.​skidmore

      As far as I know, manually editing a context's designer.cs file doesn't work.  Any event (such as moving an entity on the context's designer) causes designer.cs to re-generate wiping out your manual edits.

       

      So, code with dependencies on the attached [DataType(DataType.PhoneNumber)] will break as soon as the context is modified.  I tested this behavior using a LINQ to SQL context.  Is there a way to prevent manual edits from being wiped out?

       

      Cody Skidmore

    • LyalinDotCom

      Hey Phil, you moved Offices since last i visited! Smiley

    • s.farmar

      Good stuff!

    • Jesse Qu

      Great! But, Phil, I am wondering have you ever read through the book of Visual C++.. .. how long you put it there under you screen??  Smiley

    • Mesfin

      Hi Phil & Scott,

      Nice Presentation. I saw that you created the display name in the machine generated code. what other options do I have if I don't wish to do so. You know I may want to recreate it again for some reason (highly likely)?

       

      I was thinking partial class but these properties are aready defined though and the compiler is going to complain. let me know what your oppinion is.

       

       

    • felipecsl

      @cody.skidmore and @Mesfin:

       

      You can create a partial class for your Model and add a metadata class to it. Then, you replicate your Model's properties in the metadata class and decorate them with your attributes.

      Example:

      [MetadataType(typeof(MyModelMetadata)]

      public partial class MyModel

      {

          public class MyModelMetadata

          {

              [DisplayName("My property 1")]

              [UIHint("SomeTemplate")]

              public object MyModelProp1 {get; set; }

       

              [DataType(DataTypes.PhoneNumber)]

              public object MyModelProp1 {get; set; }

      }

       

      BTW, thanks for the great screencast. I loved the interview style as well. I was confused between LabelFor and DisplayFor. Very clear now Smiley

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.