I'm trying to maintain a TreeViews scroll position during postbacks in a masterpage environment. I've found a solution that works fine for a non-masterpage environment here . However that solution is based on setting the <Body>'s onload event to a custom javascript that is injected...