Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Dan Wahlin

AngularJS, JavaScript, HTML5, jQuery, Node.js, ASP.NET, C#, XAML

  • Freeze ASP.NET GridView Headers by Creating Client-Side Extenders

    Lately I've been working on a pet project where I needed to freeze a GridView header so that it didn't move while the grid records were scrolled by an end user.  After searching the Web I came across a lot of "pure" CSS ways to freeze a header.  After researching them more they tend to rely on a lot of CSS hacks to do the job and require HTML to be structured in a custom way.  I also found a lot of custom GridView classes (another one here), and more.  Some of the solutions were really good while others seemed a bit over the top and required a lot of custom C# or VB.NET code just to do something as simple as freezing a header.  Freezing a header requires CSS and potentially JavaScript depending upon what needs done.  Regardless if CSS or JavaScript are used, these are client-side technologies of course.  I started to write my own derivative of the GridView class but quickly realized that it made more sense to use the standard GridView control and simply extend it from the client-side.  An example of what I was after is shown next:

  • Video: First Look at Visual Studio .NET 2008 and the LinqDataSource

    Visual Studio .NET 2008 provides many new features that will definitely enhance developer productivity.  In this video tutorial I provide an introductory look at VS.NET 2008 and show a few features such as multi-targeting, split view, and the LinqDataSource control.  In the video you'll see how to build an ASP.NET page that retrieves data from a data context object (created with the new LINQ to SQL designer) and binds it to various controls using the LinqDataSource control.

  • Using the ASP.NET AJAX ScriptMethodAttribute to Return XML Data

    Web Services provide a convenient way to pass data between AJAX applications and a server.  ASP.NET AJAX provides an excellent infrastructure for Web Service integration into AJAX applications and makes it all cross-browser through incorporating JSON into the mix.  While JSON is compact and a very good fit for AJAX applications, there may be times where it's easier or more convenient to pass back raw XML to an AJAX client for processing.  This is especially true if the browser provides robust XML parsing APIs like Internet Explorer 5+.  For example, you may have a Web Service that obtains RSS data and returns it as an XmlDocument or XmlElement object.

  • Updated: List of AJAX Automated Testing and Debugging Tools

    While there are a lot of testing tools out there to look for bugs, test a Website's scalability and perform unit tests, precious few seem to handle automating the testing of AJAX applications.  As a result, I wanted to start a list of tools that support automated testing of AJAX applications as well as debugging.  If you have other tools or applications you know of or something listed is out of date please add a comment to the blog and I'll get the information added/updated.

  • ASP.NET AJAX Health Care Toolkit Controls

    Patrick Long recently blogged about some new ASP.NET (and WinForms) controls released on CodePlex that are specific to the health care industry.  Several of the controls are AJAX-enabled (based upon the ASP.NET AJAX Extensions and the Toolkit) and as I went to download them I found an online demo available here.  I wish I would've had some of these controls on past health care projects I worked on.  An example of one of the more robust controls called MedicationGrid is shown below:

  • Windows Live Mobile Search V2 Released!

    The coolest program I have for my Windows Mobile phone (by far) is Windows Live Mobile Search V1.  I use it daily to check how traffic looks as I'm driving to downtown Phoenix.  V2 of the program has been released that adds the following new features (and I see there's even a beta for BlackBerry users...but iPhone users are out of luck):

  • Exchanging Binary Data with MTOM and Web Services

    In the distributed computing class I'm teaching this week we're covering a few topics related to the Web Service Enhancements V3 (WSE3).  One of the nice features of WSE3 (and WCF for that matter) is that it can be used to exchange binary data quite easily and in an efficient manner by using MTOM.  I put together a demo project that shows how MTOM can be used to exchange binary data between a client and a Web Service.

comments powered by Disqus