March 2008 - Posts

LinkButtons in UpdatePanel cause full postback unless you give them IDs
08 March 08 08:25 PM | alexcampbell | 2 comment(s)

After tearing my hair out for half an hour, I have just figured out the painfully simple solution to a frustrating problem with UpdatePanels,Repeaters and LinkButtons.

The scenario: you have a Repeater in an UpdatePanel with LinkButtons in each RepeaterItem.  The LinkButtons fire Repeater.ItemCommand.  The problem is that every time you click on the LinkButton the page does a full postback - defeating the purpose of the UpdatePanel.

The solution: put IDs on your LinkButtons.  All of a sudden your LinkButtons are firing nice async partial-page postbacks.

Filed under: ,
Facebook says getfirefox.com
02 March 08 04:24 AM | alexcampbell | 2 comment(s)

I was just checking out how something works in Facebook's IE7 stylesheet, and found the first few lines amusing:

/*  ------------------------------------------------------------------------
                    Facebook | IE7/PC Hacks | getfirefox.com
    ------------------------------------------------------------------------  */

More Posts