Skip the navigation
News

Microsoft posts preview of ASP.Net MVC 3, for Web app development

By Paul Krill
July 27, 2010 03:03 PM ET

InfoWorld - Microsoft is readying an update to its ASP.Net MVC (Model View Controller) technology for Web application development, leveraging the company's new "Razor" view engine and offering enhancements for JavaScript.

The company posted on Tuesday Preview 1 of ASP.Net MVC 3, which provides an MVC programming model for building ASP.Net Web applications. ASP.Net 3 is the next major release of the framework. The preview is available at Microsoft's website.

[ See InfoWorld's report on the release of MIcrosoft's ASP.Net MVC 2 in March. ]

With MVC, the model contains core information for an application, such as data and validation rules, while the view encapsulates application presentation. The controller contains control-flow logic, interacting with the model and views to control information flow and execution of an application.

Preview 1 features two pre-enabled view engines: Razor and ASPX, said Scott Guthrie, corporate vice president of the Microsoft Developer Division, in a blog post. View engines are pluggable modules that implement template syntax options. Razor is optimized around HTML generation using a code-focused templating approach. Razor is intended to be compact, expressive, and fluid as well as easy to learn. It works with any text editor.

"'Razor' helps make view templates clean and concise and I think you'll find it enables a very fluid coding workflow," Guthrie said.

Razor file colorization and code intellisense is not yet supported in the Visual Studio IDE with the ASP.Net MVC 3 preview release, but plans call for adding these capabilities with a future preview. Another improvement planned for a future preview refresh is the ability to unit-test individual Razor template files without having to run the application or launch a Web server, Guthrie said.

Built-in JSON ( JavaScript Object Notation) binding support in ASP.Net MVC 3 enables action methods to receive JSON-encoded data and model-bind it to action method parameters, said Guthrie. Also, developers can connect client templates with action methods on the server that return and receive JSON data.

Future previews will include better support for unobtrusive JavaScript and direct backing for the jQuery validation library from within built-in validation helper  methods.

The preview also includes controller-specific enhancements such as global filters, for declaratively applying "cross-cutting" logic.

An Add->View dialog in the preview makes it easy to choose a syntax when building new template files, Guthrie said. "It allows you to select any of of the available view engines you have installed on your machine -- giving you the ability to use whichever view templating approach feels most natural to you," he said.

Model validation improvements in ASP.Net MVC 3 include support for .Net 4 DataAnnotations metadata attributes. Version 3 also offers better support for applying dependency injection.

Originally published on www.infoworld.com. Click here to read the original story.
Reprinted with permission from InfoWorld. Story copyright 2010 InfoWorld Media Group, Inc. All rights reserved.
Additional Resources
Forrester Consulting - Optimizing Users and Applications in a Mobile World
WHITE PAPER
Solving application issues over the WAN requires careful consideration. Based on their independent research, Forrester Consulting offers recommendations on how to tackle application performance issues, insufficient bandwidth and the inability to quickly restore users in a disaster.

Read now.

Security KnowledgeVault
WHITE PAPER
Security is not an option. This KnowledgeVault Series offers professional advice how to be proactive in the fight against cybercrimes and multi-layered security threats; how to adopt a holistic approach to protecting and managing data; and how to hire a qualified security assessor. Make security your Number 1 priority.

Read now.

Cut Communications Costs Once and for All
WHITE PAPER
New IP-based communications systems are being deployed by small and midsized businesses at a rapid rate. Learn how these organizations are enabling faster responsiveness, creating better customer experiences, speeding office or mobile interactions, and dramatically reducing existing communications costs.

Read now.

App Development White Papers
The Keys to Distributed & Agile Application Development
How leading firms are winning with strategies for efficient application development, without relying on co-location.
Overcome Top 7 Admin Challenges of Active Directory
As Active Directory's role in the enterprise has drastically increased, so has the need to secure the data. Gain insight on creating repeatable,...
Insiders Can Ruin Your Company. Take Action.
Did you know that 80 percent of threats to an organization come from the inside? The threat from insiders is often overlooked in...
Top Solutions and Tools to Prevent Devastating Malware
Custom malware frequently goes undetected. According to Forrester Research, the best way to reduce risk of breach is to deploy file integrity monitoring...
Streamline Compliance and Increase ROI
Streamline, simplify, and automate compliance related activities; especially those that impact multiple business units. This white paper from NetIQ, outlines solutions that will...
All App Development White Papers
App Development Webcasts
Reduced TCO for Communications Applications with New Oracle SPARC Servers
In this webcast learn how Oracle's new SPARC T4 servers and SPARC Supercluster deliver the security, performance, and scalability required for 4G network...
Optimizing Networks for the Cloud
Join guest speaker, Rohit Mehra, IDC Director of Enterprise Communications Infrastructure, to explore current trends, discuss best practices for optimizing Data Center and...
Apps QuickStart Series Part 2: Designing and Deploying SQL Server on VMware vSphere
Download this webcast to learn about the design considerations for virtualizing SQL workloads, performance and scalability information and high-availability options, as well as...
Apps QuickStart Series Part 1: Designing and Deploying Exchange 2010 on VMware vSphere
Download this webcast to learn the virtual hardware design considerations for Exchange 2010, deployment using the building block approach, options for high-availability and...
Customer Spotlight: How IPC The Hospitalist Company Implemented Oracle on VMware
Have you been looking to hear about customer's experiences with the new VMware vCenter Site Recovery Manager product? View this webcast to learn...
All App Development Webcasts
Newsletter Sign-Up

Receive the latest news test, reviews and trends on your favorite technology topics

Choose a newsletter
  1. View all newsletters | Privacy Policy
IT Jobs