Tag: C++

AJAX Control Toolkit – bug!

For reasons best not gone into (or at least, not if I want my readers to stay awake), I’ve been working a lot with Microsoft’s AJAX Control Toolkit for .Net recently. If you’re unfamiliar with the ACT, it’s basically a bunch of additional web controls for .Net that do calendars, modal popups… general sorts of nice stuff.

And then suddenly on one page, I noticed a problem.

I had a hidden field, which I was using to store the value I needed when the confirmation came back yes. Let’s say (for the sake of argument) that it was either “badgers” or “cheese“.

Well, it worked the first time it ran.

And then the second time, I picked “cheese” instead of “badgers” and I got back this:


Not. Happy.

After what felt like an aeon debugging the code, but was really only the time it takes between “Worthless Misery” and “Angel Of Agony“, I decided to debug the code.

Guess what? Turned out to be a bug in the ACT. PopupExtender controls don’t like being inside UpdatePanel controls. Who’da thunk it? What’s really amazing is that over the last 7 weeks, this is only the first time this issue has arisen.

Moral of the story, kids: keep your references up to date, and remember – it’s not always your code that’s at fault!

Free programming e-books

For reasons that best need remain unsaid (oh all right then – I’ve forgotten) I was looking for some books on C++ (OK OK, I’ve lost my copy of Stroustrup – happy?).

Anyway, while browsing I came across Bruce Eckel’s interesting set of eBooks. Thinking in C+, Thinking in Java… all nicely rendered (with syntax highlighting) in HTML. So far so good – readable, clear on the history of C++ and so far looking rather nice. And free as well… what’s not to like? (I’m giving thought to buying the dead tree editions…)