title: How to solve this javascript error, I am using ToolScriptManager for UpdatePanel
body: <p>I am trying to register below mentioned javascript for using with GridView to add freeze functioality on GridView.
  When compiling an error is thrown <strong>Microsoft JScript runtime error: 'Sys' is undefined</strong></p>
  
  <p>How it can be fixed.</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
      // This Script is used to maintain Grid Scroll on Partial Postback
      var scrollTop;
      //Register Begin Request and End Request 
      Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
      Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
      //Get The Div Scroll Position
      function BeginRequestHandler(sender, args) 
      {
      var m = document.getElementById('divGrid');
      scrollTop=m.scrollTop;
      }
      //Set The Div Scroll Position
      function EndRequestHandler(sender, args)
      {
      var m = document.getElementById('divGrid');
      m.scrollTop = scrollTop;
      } 
  &lt;/script&gt;  
  </code></pre>