<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="test.WebForm1" %>
我在页面加载时注册了页面Ajax.Utility.RegisterTypeForAjax(typeof(WebForm1));
我的方法是
[Ajax.AjaxMethod]
public DateTime GetServerTime()
{
return DateTime.Now;
}JS是这样的 
 function getServerTime()
  {
   
    alert(test.WebForm1.GetServerTime().value);
  }
页面上就一个按钮,当我 点击按钮时显示JS错误‘test'未定义是什么原因