I am trying to get my asp.net solution to work with jquery ajax. I am using this example:
http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/
I have this so far, but it's giving me namespace errors about it not being defined. Page
and WebMethod
is not defined...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PDFLibrary.PDFLibrary
{
public partial class SaveStructure : Page
{
[WebMethod]
public static string GetDate()
{
return DateTime.Now.ToString();
}
}
}
Does anyone know how to fix this?
Thanks