-----------------------------------------------------------------------页面代码
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testajax.aspx.cs" Inherits="WebApplication1.testajax" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <script type="text/javascript" src="Scripts/page.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input id="Button1" type="button" value="button" onclick="op()"/>
    </div>
    </form>
</body>
</html>-----------------------------------------------------------------------后台代码
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.Protocols;
using AjaxPro;namespace WebApplication1
{   
    public partial class testajax : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {}
        [AjaxMethod]
        public void osl()
        {
            Response.Write("ok");
        }
    } 
}-----------------------------------------------------------------------JS代码
  function op() {      WebApplication1.testajax.osl();
  }
-----------------------------------------------------------------------config
 <httpHandlers>
      <add verb="POST,GET" path="ajax/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
    </httpHandlers>但是怎么也运行不成功  总提示WebApplication1未定义
我不熟悉VS2010  我觉得以前用VS2005的时候就以上这样写就行了
2010 下是不是还得配其他什么东西呢? 或者2010有什么另外的写法 
求解