You are browsing the archive for ASP.NET.

by Editor

ASP.NET Web API Updates – May 14

May 14, 2012 in Articles, ASP.NET, News, Reference

We have been on a roll with respect to changes over the last few weeks – here’s some of the highlights. If you want to see the full list then you can either track the commit page or follow the project which will then show you the updates on your codeplex home page . As in the previous update this is a sneak-peak of code checked into our CodePlex source code repository but not yet released as part of our official installer . See Using Nightly ASP.NET Web Stack NuGet Packages for how to try out these features. Per Controller Type Configuration ASP.NET Web API has a HttpConfiguration object that provides configuration for features including routing, dependency resolution, media type formatters, and message handlers. However, while the HttpConfiguration…(read more)

by Editor

ASP.NET Web API Updates – May 3

May 3, 2012 in Articles, ASP.NET, News, Reference

Some interesting updates were checked in over the last week. As in the previous update this is a sneak-peak of code checked into our CodePlex source code repository but hasn’t yet been released as part of our official installer . See Using Nightly ASP.NET Web Stack NuGet Packages for how to try out these features. Per-Route Message Handlers Support for per-route message handlers has been a popular request on our issues list . The issue is that HttpMessageHandlers is a flexible extensibility point for dealing with HTTP requests and responses but they are configured once per application within the HttpConfiguration . In some scenarios you have different needs for different services so a more flexible registration is needed. Brad Wilson describes…(read more)

by Editor

Etching sketches with a Netduino Go

May 2, 2012 in Articles, ASP.NET, News, Reference

Netduino Go is designed for much more than toy projects, but one has to recognize that toy projects are fun and also great learning experiences. Today, I want to take you through the process of reproducing the behavior of a famous toy that you will surely recognize. That toy, that has helped many of us realize what poor motor skills we possess, has two knobs that control the horizontal and vertical coordinates of a pen that draws into the dust on the back of a simple screen. It’s a great mechanical device that is part of western culture. Our version will use two potentiometers , a 320×240 LCD display , a button to erase the screen, and of course a Netduino Go . The hardware setup looks like the following: We connected the button to port 2 (but…(read more)

by Editor

Using Nightly ASP.NET Web Stack NuGet Packages

April 29, 2012 in Articles, ASP.NET, MVC, News, Reference

We are very excited about the recent announcement of nightly NuGet packages being available on MyGet . This blog will show using these packages with Visual Studio 2010 but first you should be aware of the disclaimers . In short, these packages come with no guarantees and they do not substitute for the official installers which contain the official MSI with NuGet packages. And of course, don’t use your dev machine for anything important. Prerequisites: Visual Studio 2010 and GacUtil In contrast to compiling the code yourself , it is possible to use the nightly NuGets with ASP.NET MVC 4 Beta for Visual Studio 2010 installed so that you can use the project templates. The instructions here are for .NET 4.0 and Visual Studio 2010 only – it won’t…(read more)

by Editor

ASP.NET Web API Updates – April 27

April 27, 2012 in Articles, ASP.NET, News, Reference

Here’s a few more updates coming your way in ASP.NET Web API. As in the previous update the code has been checked into our CodePlex source code repository but haven’t yet been released as part of our official installer . Think of this as a sneak-peak for you to try out and comment on as part of our source code repository (see Getting Started With ASP.NET Web Stack Source on CodePlex for details). Helper for Wiring up Message Handlers HttpMessageHandlers are pluggable “filters” that sit between HttpClient and the network and allow you to modify the request and/or response as they travel from a HttpClient to the network and back. HttpMessageHandlers are plugged together in a “Russian doll” model where each handler delegates to the inner handler…(read more)

by Editor

Create a great mobile experience for your website today. Please.

April 23, 2012 in Articles, ASP.NET, News, Reference

People are fascinating with making mobile web sites. It's amazing that we're not impressed with the fact we carry tiny supercomputers in our pockets but we're amazed when a website looks decent on our phones. There's a few directions you can go when going mobile for your site, and the key is finding balance. You can: Do nothing. Your site will probably work on a mobile device but each day it will look worse and worse to a discerning public with increasing expectations. Use Adaptive/Responsive Design. This is my favorite option. If your site is read-mostly (rather than a data-entry application) you can get a great experience on all devices by adaptively rendering your site based on screen-size. If you're focused on performance…(read more)

by Editor

Recent ASP.NET Web API Updates – April 24

April 23, 2012 in Articles, ASP.NET, News, Reference

Here’s a few updates coming your way in ASP.NET Web API. The code has been checked into our CodePlex source code repository but haven’t yet been released as part of our official installer . Think of this as a sneak-peak for you to try out and comment on as part of our source code repository (see Getting Started With ASP.NET Web Stack Source on CodePlex for details). Cookie Support Until now the HTTP Cookie and Set-Cookie headers were only exposed as raw strings and not structured classes in the HttpRequestMessage and HttpResponseMessage classes. This made it cumbersome and error prone to work with cookies in ASP.NET Web API. To fix this we introduced two new classes called CookieHeaderValue and CookieState that follow the RFC 6265 HTTP State…(read more)

by Editor

ASP.NET Web API Content Negotiation and Accept-Charset

April 22, 2012 in Articles, ASP.NET, News, Reference

There are several good blogs on content negotiation in ASP.NET Web API (see for example ASP.NET Web API: How content negotiation works? ) describing how to get JSON, XML, and other response formats depending on what you ask for in a request using the Accept HTTP request header field . However, recently we added support for the header Accept-Charset which can be used by the client to indicate which character encoding it prefers the response to be encoded with. Typical encodings are UTF-8 and UTF-16 (and our built-in formatters support those) but the set is extensible to other encodings as well. Note: This is the first in a series of blogs on upcoming features that have been checked into our CodePlex source code repository but haven’t yet been…(read more)

by Editor

Electronics for developers with Netduino Go

April 20, 2012 in Articles, ASP.NET, News, Reference

Wouldn’t it be great if you could build your own stuff? Microcontrollers let you do that, but they usually require dealing with a lot of complexity and unknowns. If you’re a software developer, chances are you don’t really know how to use a capacitor, or how a transistor works, even though it is at the heart of all computers. Well there is a way now to develop awesome hardware projects without knowledge of electronics, just by connecting modules together. Netduino Go is a platform that allows for that without constraining the types of projects you can build. Today the number of available modules is still limited (the platform was released only last Wednesday), but it is expected to grow fast. In this post, I’ll introduce you to the platform…(read more)

by Editor

Great Free Course on Building ASP.NET MVC Apps With EF Code First, HTML5 and jQuery

April 20, 2012 in .NET, Articles, ASP.NET, Community News, MVC, News, Reference

Pluralsight has developed a great training course on Building ASP.NET MVC Apps with EF Code First, HTML5 and jQuery .  It is presented by the most excellent Dan Wahlin , and is really comprehensive.  Details of the course outline can be found here . Free 1-Month Subscription to the Course Pluralsight is offering a special promotion that allows you to get a free 1-month subscription to watch the above course as many time as you want at no cost.  There is no obligation to buy anything at the end of the offer and you don’t need to supply a credit card in order to take part in it. To get access to the course you simply follow @pluralsight on Twitter and then visit this page and enter your Twitter name using the form on it.  Pluralsight…(read more)