首先 点击下载AjaxPro.DLL 放在 Bin 文件夹下
在配置文件的configuration节下的system.web节下添加上
<httpHandlers>
<add verb="POST,GET" path="AjaxPro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
在页面 cs 文件中 
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default));
    }
    [AjaxPro.AjaxMethod]
    public string getAjax()
    {
        ......
    }
在前台HTML页面调用
    <script type="text/javascript">
    function Content_ListNewsClick()
    {
        alert(_Default.getAjax().value);
    }
    </script>
posted on 2008-06-04 00:01  cqsar  阅读(203)  评论(0编辑  收藏  举报