ASP.NET GridView with an ObjectDataSource

Just a quick tip:

I got the following exception today:

If a data source does not return ICollection and cannot return the total row count, it cannot be used by the GridView to implement server-side paging.

If you’re trying to return an IEnumerable from your select method, try changing it to a List or an array. That should clear the problem right up.

Comments

Going Dark

Nearly 12 months on from the start of my blog (the first post went up at the end of November 2008), I’m finding less and less time to do the quality kind of writing I have set out to do. I feel that, as I change, so too does my website need to change.
As much [...]

Comments

Mario AI Competition 2009 – Getting Started

Programming is fun. That’s why I decided it would be a good career for me. I love solving puzzles, and I love the concept of making computers, these mysterious boxes of my childhood, do things. However, when you finally get to working as a professional programmer, the types of projects you get to work on [...]

Comments

Configuring webHttpBinding When Using WCF with JQuery

Firstly, a disclaimer: I don’t have a lot of experience working with AJAX enabled WCF services, and from reading some of Rick Strahl’s posts on using JQuery with ASP.NET, I’m doing things in a really hackish and terrible manner. Hopefully my mistakes won’t impact the usefulness of this short tip.
When working with JQuery and AJAX [...]

Comments

Going Camping with CouchDB On OS X Tiger

With Snow Leopard being released at the end of September this year, Tiger is definitely starting to show it’s age. I’ve been putting off upgrading to Leopard for quite some time, not being able to justify the down time associated with upgrading an OS. This has had an unpleasant side effect of not being able [...]

Comments

My Best Guesses About Wolfram Alpha

Following the “soft launch” of Wolfram Alpha a few days ago, I’ve been wondering exactly how Wolfram Alpha works. From the description of all the hype leading up to it, it seemed like a question answering application that is specialized in answering questions, as opposed to say Google, which is more into finding and presenting [...]

Comments

Now Appearing In Austin, Texas

This blog has gone dark over the last two or so weeks, but for a very good reason. On the 21st of April, I flew from Perth, Western Australia to Austin, Texas, where I will be staying for the next 6 months. For those not acquainted with the trip, it’s half a world away at [...]

Comments

Where Do We Draw The Line On Complexity?

I’ve got a few posts planned about AI and HCI, however these require a lot of time to research and write code for, time that I don’t have given I’m flying to the US on the 21st of April. So I apologise to people who saw my last AI article on Hacker News and Reddit [...]

Comments

jQuery Context Menu Unbind Click Fix

Updated on May 28, 2009, due to partial fix. The fix should now be a complete fix.

Apologies for the somewhat confusing title.
I’ve been doing a lot of jQuery work, replacing all the AJAX.NET crap in my project at work to speed the interface up. I’ve started using the awesome jQuery Context Menu plugin. However, I [...]

Comments

Correcting 5 Misconceptions About AI

For the longest time, I have been interested in artificial intelligence. The idea of computers that could make decisions and think independently fascinated me. Of course, I knew that AI wasn’t quite that advanced, but the idea still captivated me. However, the barrier to learning AI was too high. It was too complex and too [...]

Comments