Example
First set up your code behind like so:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.Services;
namespace PostAuthenticateRequestModule
{
public class SignOut : Page
{
[WebMethod]
public static string GetServerTime()
{
return DateTime.Now.ToString();
}
}
}
And then your ASPX page goes something like this: