• ASP.NET Connections Tips and Tricks Slides+Demos Posted

    Scott Guthrie's ASP.NET tips and tricks

  • Wanted: Network profile changer for PocketPC

    I have an HP iPAQ 4150 PocketPC device. Not the latest and greatest, but it works pretty well.

    Now that I have a wireless network at home, I've struck an annoying problem: The Wireless network at work requires authentication via a VPN and can only get to the Internet via a proxy server. My network at home however doesn't require the VPN or proxy configuration.

    What I need is a nice little applet that will run on my iPAQ and that will swap the network settings over depending on if I'm at work or at home. It doesn't need to do that automatically - pressing on a button manually is ok. It would just save me messing around with all the network settings every time I want to get it working again.

    I had a quick Google but couldn't find anything that seemed to fit the bill.

  • ObjectDataSource and sorting

    I struck this error today - "Automatic sorting is only supported with DataView, DataTable, and DataSet". It was caused by binding a custom collection through a DataSourceObject control.

    Scott Guthrie suggests in a comment to this post to either implement a custom comparer, or make use of the SortParameterName property of the ObjectDataSource control.

    I ended up doing the latter, as I need to be able to sort the collection on more than one property. My middle-tier expects this as an extra parameter, and then uses a DataView to sort the DataTable before it creates the custom collection.