Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. using AjaxPro;
  2. namespace test {
  3.   public class AClass
  4.   {
  5.     public static string HelloWorld(string s)
  6.     {
  7.         return "Hello " + s + "!";
  8.     }
  9.  
  10.     //para obtener más fácilmente el URL para hacer el request ajax  
  11.     public string AjaxPath()
  12.     {
  13.       var path = ResolveUrl("~/ajaxpro/") + "test.AClass,";
  14.       path += typeof(AClass).Assembly.FullName.Split(',')[0];
  15.       path += ".ashx"; //si se cambian esta extension se debe ajusta el web.config
  16.       return path;
  17.     }
  18.   }
  19. }