I have a DIV container with style="overflow: auto" inside of an asp:UpdatePanel triggered by an asp:Timer
The contents of the DIV are updated every second but once the contents overflow the div width and height constraints the DIV is automatically scrolling back to top with every content addition; I want it to stay where the scroll is currently set, or even better keep the bottom content of the DIV visible.
I've tried to use some javascript to manipulate scrollTop with scrollHeight but it creates an unusable DIV object as auto scrolling is always happening.
I could add some javascript to not auto scroll down onfocus but that wouldn't fix the auto scrolling to the top of the DIV content when new content is added.
I have to use ASP.NET objects for all of the ajax but I have jQuery 1.7 (latest version) to supplement any functionality.