Dan Wahlin
AngularJS, JavaScript, HTML5, jQuery, Node.js, ASP.NET, C#, XAML
-
C# 3.0 Features: Object Initializers
C# 3.0 is just around the corner so I thought I'd start writing about a few of the features that it exposes and provide quick and concise examples of how they can be used. Many of the new features rely on the compiler to generate code that you would have had to write in the past. This can result in significantly less code compared to C# 2.0 syntax in many cases. Here's a list of some of the key features available in C# 3.0:
-
Silverlight 1.0 Goes Gold!
Silverlight 1.0 is now gold and being used on several sites such as Halo 3 and Major League Baseball. Check out Scott Guthrie's blog for additional details on it as well as announcements about Silverlight running on Linux in the future.
-
Online JavaScript Compression Tool
Compressing JavaScript code is useful when you want to minimize the size of files that get downloaded to the client. This is especially true with AJAX applications that may rely on several scripts to function properly.
-
Integrate Windows Live ID Authentication Into Your Website
Microsoft recently released an SDK that allows you to integrate Windows Live ID authentication into your Website (ASP.NET or any other). To get started you'll need to register your application and get an application ID. From there it's quite straightforward especially since a sample application that uses Windows Live ID is available to download. Sample code is available for ASP.NET, Java, Perl, PHP, Python, and Ruby.
-
Video How To: Getting Started with Subversion and Source Control
In this video "how to" I walk through the steps required to install and configure Subversion to control your .NET source code revisions. Several commercial options exist for source control of course such as Vault and Microsoft's Visual SourceSafe to name just two. Subversion is an open source project (it's freely available) and has excellent documentation and support available. It's also easy to use through the command-line or through TortoiseSVN.
-
Upcoming Controls in Silverlight 1.1
I hadn't heard much lately about what controls will ship when Silverlight 1.1 is finally released. Microsoft's Tim Heuer and I were chatting and he pointed me to Mike Ormond's blog which answers the question. Good information to know for those of you interested in Silverlight. Tim also blogged about 3rd party controls that will be released for Silverlight as well. Exciting times!
-
How To: Create an ASP.NET AJAX Toolkit Extender Control to Extend a GridView
In a previous post I showed examples of how CSS and JavaScript code could be used to freeze the header row of a GridView control and add scrolling capabilities for Internet Explorer and Firefox. Here’s an example of a GridView with a frozen header:
In this post I’m going to discuss how to package up CSS and JavaScript files into a custom control that can be used on the server-side to extend the GridView. Doing this allows you to continue using the standard GridView that ships with ASP.NET 2.0 in applications while extending it’s functionality through a custom extender control.
There are multiple ways to go about creating an AJAX control extender. You can use native classes available in the ASP.NET AJAX Extensions to build a control that would get the job done. However, doing so requires that you write custom code to map server-side properties to client-side properties which isn’t hard. Additional details on how to do this can be found in the ASP.NET 2.0 Professional AJAX book Matt Gibbs and I co-authored. You can download the code from the book here if you’d like to see the sample code (see the chapter 11 code).
To simplify things as much as possible, I’m going to discuss how to build a custom control that is based upon the ASP.NET AJAX Control Toolkit available from http://www.codeplex/com/AtlasControlToolkit (that’s not a typo, they never changed the Atlas name to AJAX in the URL for some reason). The ASP.NET AJAX Control Toolkit provides a base class named ExtenderControlBase along with several attribute classes that minimize the amount of code that has to be written create a control extender. Here's the steps I went through to make the control.
-
Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"
I came across the following error while trying to debug an ASP.NET page in VS.NET 2008 tonight: "Unable to start debugging on the web server. Strong name validation failed." I hadn't seen the error before but after spending a few seconds searching I came across the following steps that seem to have solved the problem. I found the steps here. Since this is documented I'm hoping it'll be resolved by the final release of VS.NET 2008.
-
AlbumViewer Application Now Runs with Silverlight and ASP.NET AJAX
With the release of Microsoft's Silverlight 1.0 I updated the Amazon.com AlbumViewer application that I originally created using WPF/E and ASP.NET AJAX back in December.
The updated code can be downloaded here and you can view a live version of the application here. -
Video: Using the New ASP.NET ListView Control
ASP.NET 3.5 introduces a new control called the ListView that allows developers to have 100% control over the HTML markup that is generated while still providing paging, inserting, updating, and deleting support. To me the ListView control is a nice blend between the GridView and Repeater controls with new features added.