Top ASP.NET Items

Sponsors

November 2010 - Posts

Doh! Use the right constants when you talk to a Netduino
When programming a Netduino microcontroller, you are going to use constants from the SecretLabs.NETMF.Hardware.Netduino namespace. In particular, there are constants defined for each of the microcontroller’s output and input ports, enabling you to write for example: var button = new InputPort ( Pins . ONBOARD_SW1 , false , Port . ResistorMode . Disabled ); The type of those constants is Microsoft.Spot.Hardware.Cpu.Pin. Here is the definition of that enumeration: public enum Pin { GPIO_NONE = -1, GPIO_Pin0 = 0, GPIO_Pin1 = 1, GPIO_Pin2 = 2, GPIO_Pin3 = 3, GPIO_Pin4 = 4, GPIO_Pin5 = 5, GPIO_Pin6 = 6, GPIO_Pin7 = 7, GPIO_Pin8 = 8, GPIO_Pin9 = 9, GPIO_Pin10 = 10, GPIO_Pin11 = 11, GPIO_Pin12 = 12, GPIO_Pin13 = 13, GPIO_Pin14 = 14, GPIO_Pin15 = 15...
Improving the Netduino Knight Rider effect with a shift register
In my last Netduino post , I showed how to create a simple Knight Rider effect. One of the problems of that implementation was that we were occupying one digital port of the Netduino for each light in the ramp. It’s fine for that simple effect, but in future posts we’ll look at controlling our whole 8x8 LED matrix, which has 16 pins whereas the Netduino has only 14 digital ports. In order to address all the matrix pins, we will need to do some multiplexing. Multiplexing means trading some time for some space. In our case, instead of using 8 parallel ports for each of the LEDs that we want to address, we’ll stream the 8 bits onto a single port serially in time and have a special component spread that onto the matrix’s pins. This can be very simply...
Upcoming Web Camps
Earlier this year I blogged about some Web Camp events that Microsoft is sponsoring around the world.  These training events provide a great way to learn about a variety of technologies including ASP.NET 4, ASP.NET MVC, VS 2010, Web Matrix, Silverlight, and IE9.  The events are free and the feedback from people attending them has been great. A bunch of additional Web Camp events are coming up in the months ahead.  You can find our more about the events and register to attend them for free here . Below is a snapshot of the upcoming schedule as of today: One Day Events One day events focus on teaching you how to build websites using ASP.NET MVC, WebMatrix, OData and more, and include presentations & hands on development. They...
FluentPath 1.0
Last Sunday, I published version 1.0 of my little FluentPath library . This library, which is a fluent wrapper around System.IO, started as a little experiment / code sample and has been met with some enthusiasm from some of you so I spent quite a bit of time over the last few months polishing it and trying to raise it to a level of quality where it can safely be used in real applications (although my lawyer is telling me that it’s still at your own risk, as specified in the license ). I’ve started using it myself on a few projects and it’s now my default way of accessing the file system. So what’s in there and why should you use it? It’s small! 36kB dll, no dependencies. It’s a NuGet! You can now install FluentPath with NuGet: It’s robust!...
XDT (web.config) Transforms in non-web projects
One of the really cool features that we shipped for Visual Studio 2010 was web.config (XDT) transformations . Because the transformations are so simple and straightforward one of the first questions that someone asks after using it is “how can I use this in my other projects?” Unfortunately this feature is only built into the Web Application Projects (WAP). But it is very easy to reuse this because we just rely on an MSBuild task to do the heavy lifting for us. I received an email from that basically went like this “Hi, I would like to use XDT transformations on my WPF project for both the app.config file as well as my unity.xml file. How can I do this?” So one answer is to modify your project file to use the TransformXml task as I have blogged...
Silverlight Firestarter Event on Dec 2nd
On December 2nd we are holding a free, all-day event focused on Silverlight.  You can attend it either in person on the Microsoft campus (where you’ll get to network with a bunch of Silverlight experts, and meet the product team), or watch it streamed live online.  The all-day event includes a ton of great content and presentations focused on Silverlight development.  It includes a bunch of self-paced labs and walkthrough videos that enable developers that are new to Silverlight to follow along.  It also includes great presentations that will teach new tricks to advanced of Silverlight developers.  Most of the talks during the day will be focused on business application scenarios. My Future of Silverlight Keynote I’ll...
“Unplugged” online talk with me this Friday
This Friday (November 19th) I’m going to be doing another online LIDNUG session .  The talk will be from 10:00am to 11:30am Pacific Time.  I do these talks a few times a year and they tend to be pretty fun.  Attendees can submit any questions they want to me, and listen to me answer them live via LiveMeeting. We usually end up having some really good discussions on a wide variety of development related topics. You can learn more and register to attend the event for free here . Hope to get a chance to chat with some of you there! Scott P.S. In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu Read More...
ASP.NET MVC 3: Server-Side Comments with Razor
Earlier this week we shipped the ASP.NET MVC 3 Release Candidate .  It supports “go live” deployments, and includes a bunch of great improvements/enhancements on top of the features we enabled earlier with the ASP.NET MVC 3 beta and first preview releases. This is another in a series of “mini-posts” I’m doing that talk about a few of the new ASP.NET MVC 3 Beta/RC features in more detail: New @model keyword in Razor (Oct 19th) Layouts with Razor (Oct 22nd) Server-Side Comments with Razor (today) In today’s post I’m going to discuss a small, but useful, feature we’ve recently introduced: server-side comment support in Razor. Why Server Side Comments? Scenario: You are working within a view template, and want to temporarily disable some content...
A few quick ASP.NET MVC 3 Installation Notes
On Tuesday I blogged about the recent release of the ASP.NET MVC 3 RC build .  You can read more about it here . This post is a quick follow-up post that discusses a few installation issues that we’ve seen people run into - and how to fix them: ASP.NET MVC 3 RC and C#/VB Async CTP Two weeks ago the VS languages team released an early preview of some cool language improvements to VB and C# that we are working on for asynchronous programming.  Unfortunately it isn’t possible to have both the Async CTP and the ASP.NET MVC 3 RC installed on the same machine at the same time.  You instead need to choose one or the other right now – installing both will cause problems. If you’ve already installed the Async CTP and want to install the...
ASP.NET Web Application: Publish/Package Tokenizing Parameters
Today I just saw a question posted on stackoverflow.com asking Why are some Web.config transforms tokenised into SetParameters.xml and others are not ? Let me give some background on this topic for those who are not aware of what the question is. With Visual Studio 2010 when you package your application using the Build Deployment Package context menu option, see image below. When build the package by default the package will be created in obj\{Configuration}\Package\{ProjectName}.zip where {Configuration} is the current build configuration, and {ProjectName} is the name of the project. So in this case I since I’m building with Debug and the project name is MvcApplication1 the package will be placed at obj\Debug\Package\MvcApplication1...
More Posts Next page »