how to ignore "maintainScrollPositionOnPostBack" property which is written in web.config?
.net, asp.net, c#
Solution
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
Problem
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...!!!