Rory Primrose

Learn from my mistakes, you don't have time to make them yourself

View project on GitHub

Databinding not firing

Here’s a little tip. If your databound control is not firing it’s databinding, make sure that the control and all of its parents are visible on the page. If it isn’t visible, OnPreRender doesn’t fire and therefore your databinding won’t either. Makes a lot of sense. There is no point having the overhead of databinding if you are not going to display anything. That just wasted a couple of hours on a really simple mistake.

Written on November 21, 2006