title: Give focus to a control but scroll to different one
body: <p>After a postback, I want my page to have focus on a child control of a gridview, but scroll the page to a different part.
  the standard myGridView.Focus(), called on the Page_Load or Page_prerender, insert a </p>
  
  <pre><code>WebForm_AutoFocus('myGridViewClientID');
  </code></pre>
  
  <p>in the rendered html.
  This function move also the scroll not to the required position</p>
  
  <p>Any suggestion?</p>
  
  <p>my try: use some function injected by Asp.NET:</p>
  
  <pre><code>function FocusWithoutScroll(focusId) {
      var targetControl;
      if (__nonMSDOMBrowser) {
          targetControl = document.getElementById(focusId);
      }
      else {
          targetControl = document.all[focusId];
      }
      var focused = targetControl;
      if (targetControl &amp;&amp; (!WebForm_CanFocus(targetControl))) {
          focused = WebForm_FindFirstFocusableChild(targetControl);
      }
      if (focused) {
          try {
              focused.focus();
          }
          catch (e) {
          }
      }
  }
  </code></pre>
  
  <p>but in order to use this code, I have to include some .axd resource files: it seems ASP.NET automatically include them when you set 
      someControl.Focus();
  in your server side code. but this in turn insert the 
      WebForm_AutoFocus('myGridViewClientID');</p>
  
  <p>which scroll the page to the wrong position</p>