title: Getting pageLoad error in MicrosoftAjax.js
body: <p>I am writing an asp.net web forms website that requires users to login. 
  I am experiencing some errors with the raiseLoad function in MicrosoftAjax.js after they have logged on.</p>
  
  <p>MicrosoftAjax.js is loaded as a bundle</p>
  
  <pre><code>&lt;asp:PlaceHolder runat="server"&gt;
      &lt;%: Scripts.Render("~/bundles/modernizr") %&gt;
      &lt;%: Scripts.Render("~/bundles/WebFormsJs") %&gt;
      &lt;%: Scripts.Render("~/bundles/MsAjaxJs") %&gt;
  &lt;/asp:PlaceHolder&gt;
  </code></pre>
  
  <p>My BundleConfig file is </p>
  
  <pre><code>Public Class BundleConfig
      Public Shared Sub RegisterBundles(ByVal bundles As BundleCollection)
          bundles.Add(New ScriptBundle("~/bundles/modernizr").Include(
              "~/Scripts/modernizr-*"))
  
          bundles.Add(New ScriptBundle("~/bundles/WebFormsJs").Include(
              "~/Scripts/WebForms/WebForms.js",
              "~/Scripts/WebForms/WebUIValidation.js",
              "~/Scripts/WebForms/MenuStandards.js",
              "~/Scripts/WebForms/Focus.js",
              "~/Scripts/WebForms/GridView.js",
              "~/Scripts/WebForms/DetailsView.js",
              "~/Scripts/WebForms/TreeView.js",
              "~/Scripts/WebForms/WebParts.js"))
  
          bundles.Add(New ScriptBundle("~/bundles/MsAjaxJs").Include(
              "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
              "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
              "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
              "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"))
  
      End Sub
  End Class
  </code></pre>
  
  <p>When I run my website on different browsers, I get different errors</p>
  
  <ul>
  <li>IE11 - Object doesn't support property or method 'pageLoad' </li>
  <li>Edge - SCRIPT438: Object doesn't support property or method 'pageLoad'</li>
  <li>Chrome - Uncaught TypeError: window.pageLoad is not a function</li>
  <li>Firefox - TypeError: window.pageLoad is not a function</li>
  </ul>
  
  <p>IE11 is the only browser that displays a popup asking if the user would like to debug the error (even though I have Disable script debugging ticked)</p>
  
  <p>I have done numerous searches on google and bing for "Object doesn't support property or method 'pageLoad'" and I can find hundreds of "Object doesn't support property or method 'xxx'" pages where 'xxx' might be 'insert', 'includes', 'assign', 'startswith' etc but never 'pageLoad'.</p>
  
  <p>I have also done numerous searches for "TypeError: window.pageLoad is not a function" and all the results refer to window.onload.</p>
  
  <p>The resultant pages all seem to refer to an error in the developer's website code, not a third party javascript file.</p>
  
  <p>I have even searched for "MicrosoftAjax.js pageLoad error" and "MicrosoftAjax.js error" but none of the results relate to pageLoad.</p>
  
  <p>I suspect that this error is a very simple one in my web page that manifests as the errors I am getting but I have no idea where to even start looking.</p>
  
  <p>I only have until January to resolve this issue so any help in resolving this issue would be appreciated</p>