Tag: AJAX


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:

Badgers,,Cheese,,,,,,

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!




Archives