title: the type or namespace name 'webmethod' could not be found
body: <p>I'm using jquery, ajax, &amp; .net to call a method. I see lots of examples on the net saying to put [Webmethod] above the method but I'm keeping getting the error the type or namespace name 'webmethod' could not be found. I have put "using System.Web.Services;" at the top. What else needs to be done?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Web.Services;
  
  public partial class _Default : System.Web.UI.Page
  {
  
  [WebMethod]
  public static string GetDate()
  {
      return DateTime.Now.ToString();
  }
  }
  </code></pre>