title: WebResource.axd and ScriptResource.axd Get Method Failed
body: <p>I have been searching around here and elsewhere on the internet searching for a solution, and have wasted too much time on this. Keep in mind I am fairly new to web design and am self taught. It is possible I just completely missing something.</p>
  
  <p>When I click the but who calls the CallMeMaybe() function I will get the "Starting 1" and "passed test 1" alerts only. So my pagemethods gethello() I am assuming is not getting called, or at least not doing anything.</p>
  
  <pre><code>function CallMeMaybe() {
              var dest;
              // call server side method
              alert("Starting 1");
  
              if (typeof (PageMethods) == "undefined") {
                  alert("Not Working");
              }
              else {
                  alert("passed test 1");
                  var prm = Sys.WebForms.PageRequestManager.getInstance();
  
                  PageMethods.GetHello(CallSuccess, CallFailed, dest);
              }
              alert("Sent");
          }
  
          function CallSuccess(res, destCtrl) {
              alert("success");
              var dest = document.getElementById(destCtrl);
              alert(res);
              var str = "";
              var table_result = "&lt;table border='1'&gt;";
              for (var i = 1; i &lt; res.length - 1; i++) {
                  str += (res[i] + "&lt;br /&gt;");
                  table_result += "&lt;tr&gt;&lt;td&gt;&lt;img src='Images/img" + i + ".jpg' alt='' width='100' height='100'/&gt;&lt;/td&gt;&lt;/tr&gt;";
              }
              table_result += "&lt;/table&gt;";
              //document.querySelector('#results').innerHTML += str;
              document.querySelector('#results').innerHTML += table_result;
          }
  
          // alert message on some failure
          function CallFailed(res, destCtrl) {
              alert(res.get_message());
          }
  </code></pre>
  
  <p>When I run the Developer Tools in Chrome I get this:
  <img src="https://i.stack.imgur.com/yX0x9.png" alt="Screen Shot"></p>
  
  <p>If any of you could help me or point me into the right direction that would be awesome! Like I said I have wasted too much time trying to figure this out and finally decided to come here to ask for help.</p>