title: JSON calling C# class method
body: <p>Trying to call a C# class from JSON.</p>
  
  <p>The JSON code is in my master.cshtml file, and looks like this:</p>
  
  <pre><code>var tips = $(".validateTips");
  
  function updateTips(t) {
     tips
     .text(t)
     setTimeout(function () {
        tips.removeClass("ui-state-highlight", 1500);
     }, 500);
  }
  
  $.ajax({
     type: "POST",
     url: "/App_Code/LoginClass.cs/test",
     data: {},
     contentType: "application/json; charset=utf-8",
     datatype: "JSON",
     success: function (msg) {
        updateTips(msg.d);
     }
  });
  </code></pre>
  
  <p>the C# code is in the file LoginClass.cs and looks like this:</p>
  
  <pre><code>public class LoginClass
  {
      public static string test()
      {
           return "hello";
      }
  }
  
  my solution folders looks like this:
  +----App_Code
  |    |
  |    +---LoginClass.cs
  |
  +----Views
  |    |
  |    +---Shared
  |        |
  |        +---Master.cshtml
  |
  +----default.cshtml (Where the master layout page is connected to)
  </code></pre>
  
  <p>The updateTips doesn't </p>