Thomas Bandt

Über mich | Kontakt | Archiv

ASP.NET MVC ist im Beta-Status

Noch nicht Feature-Complete, die Basis ist aber wohl soweit vollendet, wie Scott schreibt. Ich bin ja immer noch kein richtiger Fan davon, aber der "Model Binder Support for Complex Types" ist schon sexy. Denn mit WebForms läuft das bisher immer auf mehr Schreibarbeit hinaus: Button -> Klick-Event -> nach Validierung Erstellung des komplexen Objektes und Zuweisung der einzelnen Eigenschaften:

Car car = new Car();
car.Name = TextBox1.Text;

Das automatische Binden kann hier wirklich Arbeit sparen, gleichwohl es natürlich auch sehr schnell massive Sicherheitslücken als auch Seiteneffekte bei unachtsamer Formatierung des Views verursachen kann.

Wichtig ist vielleicht nochmal der letzte Absatz:

As I always like to make sure I point out: If you don't like the MVC model or don't find it natural to your style of development, you definitely don't have to use it. It is a totally optional offering - and does not replace the existing WebForms model. Both WebForms and MVC will be fully supported and enhanced going forward (ASP.NET WebForms in .NET 4.0 will add richer URL routing features, better HTML css markup support, complete control over the ClientId property, more AJAX features, and more that I'll be blogging about soon). So if you don't like the MVC option, don't worry, and don't feel like you should or need to use it (you don't).

Das liest sich ja zudem schonmal so, als würde in der nächsten .NET-Version auch das bisher eher stiefmütterlich behandelte WebForms-Modell ein paar ordentliche Updates erfahren, was mich freut :-).



« Zurück  |  Weiter »