What are some effective strategies to ensure a specific control is in view when a page is opened?
More specifically, I have a validation message which appears beneath the fold, and I want to ensure it is seen when necessary.
I considered using a bookmark (named anchor) but there is no clean way to use it, since I only realize there is an error after I’ve processed the page.
This won’t matter with most expected solutions, but I’m adding the asp.net-mvc tag, in case there is anything funky in the framework that might help me.
And yes, jQuery solutions are ok.
Answered on Twitter by David Wolever