Dan Wahlin
AngularJS, JavaScript, HTML5, jQuery, Node.js, ASP.NET, C#, XAML
-
Using LINQ to SQL XML Mapping Files – Step by Step
.NET 3.5’s LINQ to SQL functionality provides a great way to write data access layer code that automatically handles mapping relational data to object properties. Although I generally prefer to use stored procedures when performing insert, update or delete operations against a database (see my previous post on this), I still use LINQ to SQL in projects since it eliminates the time I used to spend creating SqlParameter objects or writing AddWithValue() parameter statements. Overall, LINQ to SQL has made me much more productive as a developer.
-
Introduction to Layout Controls in Silverlight 2
Arranging controls on a user interface in a flexible manner is key to building successful applications. Silverlight 2 provides three main controls that can be used for layout management:
-
Syncing a Windows Mobile Device Emulator with Vista’s Mobile Device Center
I started working on a Windows Mobile application on Vista and couldn’t get the emulator to sync property with the Mobile Device Center. I’d synced device emulators long ago on XP with ActiveSync but just couldn’t get it working like I wanted on Vista. I had the different 6.0 and 6.1 SDKs installed, had the Cellular Emulator working perfectly with the device emulator but couldn’t sync to save my life. I needed to move over a C++ dll that needed to live in the device emulator’s Windows directory. After a lot of searching it turns out that all I had to do was enable DMA in the connection settings for the Mobile Device Center as shown next:
-
ASP.NET - Render Hidden Fields at the Top of a Form with .NET 3.5 SP1
-
Instinct Experiment Over…Back to Windows Mobile
Over the past few weeks I’ve been trying out the Sprint Instinct touch screen phone to see how I liked it. I wrote my initial review here and posted some tips and tricks on using the device here. The poor browsing experience on the Instinct finally led me to take it back to the store yesterday so I’m back to using my PPC-6700 until Sprint releases the HTC Touch Diamond (or Pro) later this year.
-
Sprint Instinct Tips and Tricks
In a previous post I discussed some of the pros and cons of the new Sprint Instinct phone that I recently purchased. I’ve had the phone for a few weeks now and still like it a lot overall. It’s not nearly as flexible as the PPC-6700 phone I had previously when it comes to installing software (a lot of applications like Opera Mini won’t work due to a virtual keyboard issue that Sprint/Samsumg will hopefully fix), but it shines in many areas where my Windows Mobile phone was severely lacking such as visual voice mail, GPS navigation, flexible touch screen interface, business search (with GPS positioning), plus more.
-
Pros and Cons of the Sprint Instinct Phone
There’s been a lot of hype over Apple’s new iPhone 3G coming out on July 11th as well as Sprint’s recently released Instinct phone. I was originally going to switch over to AT&T and get the iPhone but it meant switching my wife
over as well since we need to be able to call each other without using plan minutes. After evaluating the cost of switching carriers we decided it wasn’t worth it since we’d have to pay $400 to get out of our Sprint contracts and my wife recently bought the PPC-6800 Windows Mobile phone which wasn’t cheap. We’ve been very happy with Sprint’s network in our area as well.
-
Pushing Data to a Silverlight Client with a WCF Duplex Service – Part II
-
Pushing Data to a Silverlight Client with a WCF Duplex Service - Part I
Silverlight provides several different ways to access data stored in remote locations. Data can be pulled from Web Services and RESTful services and even pushed from servers down to clients using sockets (see my previous articles on sockets here, here and here). Silverlight 2 Beta 2 introduces another way to push data from a server to a client using Windows Communication Foundation (WCF) and HTTP. WCF's support for duplex service contracts makes this possible and opens up unique opportunities for pumping data to Silverlight clients. In this first part of a two part series I'll demonstrate how a WCF push service can be created and cover the steps to get a sample service up and running. The second article will focus on the client and show how to communicate with a WCF duplex service and listen for data that's sent.
-
Creating a Silverlight 2 Client Access Policy Socket Server
Silverlight 2 provides built-in support for sockets which allows servers to push data to Silverlight clients. By using this feature clients can avoid polling the server on a timed basis to ensure that clients are kept up-to-date. If you're new to the socket features built-into Silverlight 2 you'll want to read my previous posts to get additional details about how data can be pushed from a server to a client: