Home / ASP.NET Weblogs

Latest Microsoft Blogs

Posted to:

ASP.NET MVC Beta and RC Upgrades - Confirm your Expectations and Version Numbers in Production Environments

I was working on an app locally using a daily build (newer than the currently released one) of ASP.NET MVC and deployed it to a host. I noticed this weird CSS issue. See how the text box on the left running on localhost is small and not styled while the one on the right running on the host is the correct width? You can click on the screenshot if you need to see more. I dug around a little and using the F12 browser developer tools (as well as good old View Source) I noticed the HTML being created was different! My local app was producing one bit of markup, then when I deployed the same app to my host I would get different markup! Here's the app's markup running locally: <input class="text-box single-line" data-val="true"...
Filed under: ,
Posted to:
by: 
05-13-2012, 8:30 PM

ASP.NET Web API Updates – May 14

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...
Posted to:
by: 
05-03-2012, 6:05 PM

ASP.NET Web API Updates – May 3

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...
Posted to:

Etching sketches with a Netduino Go

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 320x240 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...
Posted to:
by: 
04-29-2012, 2:25 PM

Using Nightly ASP.NET Web Stack NuGet Packages

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...
Posted to:
by: 
04-27-2012, 12:11 AM

ASP.NET Web API Updates – April 27

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...
Posted to:

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

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...
Filed under: , ,
Posted to:
by: 
04-23-2012, 3:58 PM

Recent ASP.NET Web API Updates – April 24

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...
Posted to:
by: 
04-22-2012, 3:46 PM

ASP.NET Web API Content Negotiation and Accept-Charset

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...
Posted to:

Electronics for developers with Netduino Go

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...

1 2 3 4 5 Next > ... Last »