Question: I set **"maintainScrollPositionOnPostBack=true"** in my web.config file for the shake of requirement. Everything is ok, but the problem is this global setting ignore my control.focus() property.

Eg:

```
myLable.focus();

```

myLable is not get focused. How can I get focus over controls regardless of **"maintainScrollPositionOnPostBack"** property? any help would be greatly appreciated...!!!

Answer: 
set MaintainScrollPositionOnPostBack=false; just before where you want to use focus with your label. This article has detailed discussion how it works underneath [How MaintainScrollPositionOnPostback works](https://web.archive.org/web/20211020121505/https://www.4guysfromrolla.com/articles/111407-1.aspx)
maintainScrollPositionOnPostBack relies on browser config entries in the Web.Config which are no longer supported or recommended by Microsoft - as it is, the versions of the browsers it supports are antiquated.

Use jQuery to achieve this effect, plus it's cross-browser friendly.

FYI: Here's another was to handle this:

<http://www.kodergurl.com/2010/08/maintain-scroll-position-on-post-back.html>