Archive for June, 2009

LinkButtons, UpdatePanels and IDs

Tuesday, June 2nd, 2009

I have an Repeater control sitting on my page, in the ItemTemplate of which are a couple of Button controls which do various things – delete the item, open the item’s detail pages etc… I think it would be nice to wrap the whole thing in an UpdatePanel to give it that whole AJAX-y feel. All good.

Then the client asks if the buttons can be links instead of buttons. No problem, think I, and go ahead and change the Buttons to LinkButtons. At which point the application stops working. Clicking on the link buttons does a full post back (even though they’re in the UpdatePanel) and their associated methods in the code do not fire. Very strange. I remove the UpdatePanel and the methods fire. All very odd.

Now, I don’t like giving IDs to controls that I don’t reference directly in the code. So as a matter of course I remove IDs from things like Buttons, LinkButtons etc… Which is all fine until you put a LinkButton in an UpdatePanel – where an ID is necessary.

So, if you have a LinkButton within an UpdatePanel and it is doing an unexpected post back and the onclick event is not firing, check that you have an ID on it.

JIRA and Confluence for next to nothing

Tuesday, June 2nd, 2009

Someone just sent me a great deal available on two Atlassian products, JIRA and Confluence. Both these products normally cost in the region of a $1000 and are currently available for just $5, all in the aid of charirty. I’ve heard great things about both of these products so i’m looking forward to using them on our projects.

More details here. This offer only runs until the 24th April so you’ll have to be quick to snap it up.