ASP.NET Web API allows you to write a service once and provide different output formats with little effort on the developer's side.
By adding IaaS to its Platform as a Service (PaaS) portfolio, Microsoft is also mounting its most formidable challenge yet to Amazon Web Services.
- By Jeffrey Schwartz
- 06/07/2012
Create a JavaScript client that works with a WCF 4.5 WebSockets service to receive continuous, ongoing updates from the service.
The Microsoft JavaScript Upshot library provides a simplified API for retrieving data from the server and caching it at the client for reuse. Coupled with Knockout, the two JavaScript libraries form the pillars of the Microsoft client-side programming model.
Peter Vogel continues his exploration of WCF 4.5's support for WebSockets by writing the code to accept data from the client and then return data to the client whenever that data becomes available.
While Windows Communication Foundation 4.5 has lots of little improvements, the ASP.NET Web API is a very big change. You'll probably end up taking advantage of both, so here's what's in the pipeline for you.
Visual Studio Magazine Tools Editor Peter Vogel wanted to avoid the raw, uninitialized HTML/HTML5 that users sometimes see in their browsers before JavaScript properly arranges things.
- By Readers of Visual Studio Magazine
- 05/01/2012
Peter looks at Knockout, one of the MVC environments for writing client-side JavaScript, and wonders if we're on the wrong path.
By having your Data Annotations implement the IClientValidatable interface, you can make it easy for developers to integrate your client-side validation into your Views.
Validation should begin as close to your database as possible: in your Entity Framework entities. Here's how you can integrate validation code into both the entities the Entity Framework generates and the ones you write.
Scott Hanselman, senior program manager in Microsoft's Developer Division, said that the decision wasn't really about open source: "This is about open development."
- By John K. Waters
- 03/28/2012
While you can create classes that contain their own validation code, there are scenarios where it makes sense to separate validation code from the properties it validates using DataAnnotations.
10 questions and answers to help understand the Roslyn complier-as-a-service project for Visual Basic and C# developers.
WPF provides the richest environment for developers to incorporate standalone validation classes into their user interfaces—and for business object developers to support an application's user interface.
A certain Darwinian evolution is taking place at Microsoft. Some product species are more fit, with better chances for survival. You can understand and work with Microsoft's changes, rather than being passively impacted by them.
- By Andrew J. Brust
- 03/01/2012
Implementing one of three interfaces can turn your business classes into self-validating components that seamlessly integrate into WPF, Silverlight and ASP.NET MVC applications -- and can be easily extended to other environments.
WPF makes it very easy to load non-executable resources at run time -- including a complete UI in XAML. Here's how to leverage that functionality to create applications that you can customize without recompiling.
You can use your Master Pages just to structure your pages. Or you can integrate them into your application with custom code that your content pages can access.
Tired of mapping your classes from one format to another? A convention-based, open source library can help alleviate some of those coding headaches.
- By Patrick Steele
- 02/02/2012
Web Parts and User Controls let you easily build customizable UIs with the same tools you use to create inflexible user interfaces -- and implement an MVC-like pattern in ASP.NET.